PostgreSQL is an open source object-relational database system.

learn more… | top users | synonyms (1)

-6
votes
0answers
18 views

SPATIAL QUERYING ON A VECTOR LAYER IN OPENLAYERS 3 , TO HAVE ONLY SOME SPECIFIC LAYERS TO BE VISIBLE IN OPENGEO SUITE APP [on hold]

As i am unable to write a query on vector layer in openalyers 3. On raster layer i am able to restrict layers using CQL_FILTER, but unable to add styling and overlay it on a bing map. Looking for a ...
-4
votes
0answers
13 views

HOW TO PASS AND CALL VALUES FROM A OPENGEO SUITE APPLICATION TO A .NET APPLICATION [on hold]

I am unable to call and pass values from a separate application(.NET application) to a opengeo suite applciation. As i am given with a (url :- http://localhost:9080/ ) generated in command prompt ...
1
vote
0answers
13 views

access the encrypted table in qgis

I have a vector layer in qgis connected to PostgreSQL database table. Suppose I encrypt the table column using pgp_sysm_encrypt or some other encryption in PostgreSQL Is there any way i can say ...
3
votes
2answers
47 views

ST_Area of a buffer differs by coordinate

Why are these results different? The only difference is the coordinate. Seem like the area should be the same. select st_area(st_buffer(st_setsrid(st_point(-70, 40), 4326)::geography, 10)) AS ...
1
vote
1answer
35 views

How to transform from a SRID to another?

How can I transform a geometric column of table from "SRID=4326" to "SRID=32650". I saw "ST_Transfom" and " ST_SETSRID" operator before. To do so, I used follow construction operator, But it dosen't ...
0
votes
2answers
104 views

Sql Query in Postgresql

I am trying to execute a query but I am stuck. I have two tables A and B. The a table has columns gid, geometry(line-string) and value which cells is empty , the B table has got 3 columns gid, ...
0
votes
1answer
23 views

How to identify the right road using postgres and postgis

I want to identify a road at particular point of intrest using post gis. Example Input String : 16th cross near xyz mall. Problem I am facing As there will be many "16th cross roads" in the map , ...
0
votes
1answer
29 views

How to resolve the postgis “type geometry does not exist” issue on installing tiger_geocode extension?

I have installed postgis extension in my db. I have few columns associated with its type in few tables and now I would like to use reverse geocode functionality in my app. Hence I tried to create ...
1
vote
1answer
25 views

How to merge(transfer) one layer into another postgis layer?

I want to merge 2 layer which have identical structure. First layer is from postgres database table say "layer1" and other layer is shapefile say "layer2". I want to merge layer2 "INTO" layer1 (NOT ...
0
votes
1answer
37 views

PostGIS: Closest outside point to point inside polygon

There is the famous ST_ClosestPoint() return the closest point inside polygon to some outside point. I'm looking the inverse problem: I have a location inside polygon, and I want to get the closest ...
0
votes
0answers
18 views

PostGIS: Lines from location touches but not intersecting polygons

I have OSM .shp file of buildings. I created vertices along each line of the building in that way: vertices (red) & mid points (green). The mid points made by ST_Line_Interpolate_Point() after ...
0
votes
1answer
20 views

How to use intersection in spatial guery in postgresql?

I want to get id, time and point_metric columns from intersection between two geometry(geom_lines and gem_houses). I wrote following sql code, however it fore an error (argument of WHERE must be type ...
0
votes
1answer
23 views

How to set srid of a single point coordinates pair?

I think is better explain with a small example: selected a geometry point i get it back in a coordinate pair SELECT ST_AsGeoJSON('010100002031BF0D009A999919F9BD2D41CDCCCC4C758E5241') --result: ...
1
vote
1answer
51 views

counting overlapping polygons - ST_Union very slow, how to make it more efficient?

I have a set of 1000 polygons that overlap and I want to count the areas of overlap. I am using this blog post's instructions to create multilines from the 1000 polygons then use this line file to ...
0
votes
2answers
55 views

PostGIS: Closest polygon to point [duplicate]

I have .shp file of polygons and single (point) location. How can I retrieve the closest polygon to that single location? Thanks,
0
votes
0answers
13 views

Which is the correct Options 's “Hydraulics” field in EPANET?

Which parameter has to be given into Options 's "Hydraulics" field in EPANET? Has it to be only a name or a complete file name with the extension? In my case .rpt doesn't work, neither without the ...
1
vote
0answers
23 views

How raster files are stored in databases?

When storing raster files in PostgreSQL only one row is created in the database, but the raster is a matrix so typically it must create rows and columns. I want to understand how raster files are ...
0
votes
0answers
30 views

Error's while retrieving data from postgres to Qgis using python?

This is my code of python in qgis from qgis documentation docs uri = QgsDataSourceURI() uri.setConnection("localhost","5432","gis_data","postgres","vajja") ...
0
votes
1answer
18 views

With schema, function postgis_full_version() does not exist

A rails application is configured to run with postgis. Database.yml is configured as follows: development: adapter: postgis database: app_development username: simpleton schema_search_path: ...
1
vote
0answers
31 views

Issues creating ArcSDE sde_logfile for certain users (username begins with a numeral)

I am having issues when editing an sde feature class from certain users. The way my database is set up is that the authentication roles are updating constantly by comparing the current authentication ...
1
vote
1answer
23 views

Get points in a union of circles

I am trying to create a postgis query that would get all the points in an union of circles (possibly more than a thousand of circles with different radius). The circles would be created dynamically ...
0
votes
1answer
49 views

Error while connecting qgis with postgres?

sql="select long,lat from poidata.poi_ca from where city LIKE '%unnyvale'" uri = QgsDataSourceURI() uri.setConnection("localhost","5432","gis_data","postgres","vajja") ...
0
votes
1answer
36 views

Issue using pgr_dijkstra from Postgres pgRouting

I am using Postgres with Postgis extension to retrieve streets (only for pedestrian use) and several "natural" points. I need to make updates every minute and i am working on a small bounding box. For ...
2
votes
2answers
84 views

Problem with PostgreSQL View layer in QGIS

I have a PostgreSQL table and view: CREATE TABLE lines ( geom geometry(MultiLineString,4326), type character varying(254), login text, gid serial NOT NULL, ...
0
votes
0answers
16 views

geojson coordinate conversion to the format of the data coming from PostgreSQL?

I use hibernate spatial and geotools this is save to vector code : if (vectorType.equalsIgnoreCase("Point")) { LineString point =new GeometryJSON().readPoint(item.getData()); ...
0
votes
0answers
30 views

Postgis ST_Azimuth only returning a small range of angles

I have a puzzler with postgis and ST_Azimuth. I have a table of points (taken from country borders, and run through the QChainage plugin). I want to find the azimuth from a fixed point (15.0,50.0) to ...
0
votes
0answers
16 views

using changeset for larger region to update OSM data in PostGIS

I'm using the OSM import and update workflow described here to maintain OSM data in a PostGIS database. Import (osm2pgsql): osm2pgsql -c -d gps -U gps --cache 8000 --number-processes 4 --slim ...
1
vote
1answer
24 views

How to select from geometry column in postgresql?

I've got a table which it has a geometry column filed by some point (ex. "POINT Z (116.309627 39.991285 148)"). now I want to select point's id from the table. I wrote follow sql Code but I force an ...
0
votes
1answer
16 views

Intersection of two vector tables data in postgresql

I have satellite raster data is converted in to pixels using create table gtru_tile_pix as SELECT (ST_PixelAsPolygons(rast)).val, (ST_PixelAsPolygons(rast)).geom FROM ...
1
vote
1answer
39 views

A few PgRouting database design questions

Does someone know how the cost field in PgRouting is calculated? What are 'source' and 'target' good for? 'osm_source_id' and 'osm_target_id' contain the same information using different numbers. Is ...
1
vote
1answer
46 views

Percent total from postgis clip

How would I calculate the percentage of streets that have sidewalks summarized by census tracts using PostGIS. My sidewalks file has an id that links it to its adjacent street and I've worked out how ...
1
vote
0answers
16 views

GeoTools How to add attribute to a schema in DataStore

As you know, you can create a schema in a DataStore. For example, you may create a table in a postgresql database like this: SimpleFeatureType schema = ...;// some schema DataStore dataStore = ...
0
votes
1answer
11 views

pgsql2shp error: table does not exist

I am exporting tables from Postgresql 9.2 to shapefiles using postgis 2.0. I have the same system on other machines and it works correctly. I have tried running the command from a prompt and get an ...
3
votes
2answers
148 views

How to classify a raster using QGIS Plugin interacting with PostGIS?

I'm developing a QGIS plugin where users can enter some parameters (like distance, depth, area...) and by submiting the plugin interact with a PostGIS database and extract informations form vector and ...
0
votes
1answer
24 views

Average distances between two point sets bound by polygon

I have a table of boundary polygons, a table of points and a table of other_points I want to work out the average distance between points contained within and other_points for each polygon. So far I ...
0
votes
0answers
21 views

postgres update and cluster not empty

I want to update my postgres/postgis server (on Windows) moving from version 9.2 to 9.3, and 2.0 to 2.1 for postgis. I am using pg_upgrade bu stuck on a error : New cluster database "postgres" is ...
0
votes
1answer
37 views

Couldn't Excute command line PostGIS pgsql2shp

I am using postgres 9.3 with postgis 2.1 on Ubuntu 14. When I tried to dump pgsql table using pgsql2shp, I get the following error. Error: pg_wrapper: pgsql2shp was not found in ...
1
vote
2answers
45 views

Rasters loaded in Postgres/PostGIS using raster2pgsql contain blank lines

I recently set up an Ubuntu Server as a Postgres/PostGIS database server. In an effort to serve a collection of aerial photos to my colleagues, I loaded 608 GeoTiffs (non-overlapping 1km tiles each ...
0
votes
1answer
55 views

Nominatim installation error: Out of memory for node cache dense index

I am installing Nominatim on my Ubuntu server 14.04 through this link and trying to load OSM data into my postgreSQL database. For loading into my database I am using this command as given in the ...
4
votes
1answer
46 views

Slow Planning for Postgis ST_Intersects

I am trying to run the following query: SELECT * FROM fences where ST_Intersects(geom, ST_GeomFromText('POINT(-73.990452 40.994184)', 4326)) When I run Explain Analyze I get the following: "Index ...
1
vote
0answers
30 views

How to create MBtiles from geoserver

How to generate mbtiles in geoserver? using openlayers for displaying geoserver layer for example calling wms layer like this new OpenLayers.Layer.WMS("Kanpur", ...
1
vote
1answer
20 views

How to use the Tile Server to fetch latitude/longitude data

I have installed a tile server using the following link and my main purpose was to geocode as many times as possible. Initially I was using openstreet API to geocode but they have certain limits so ...
1
vote
1answer
29 views

Convert Postgresql Polygon to PostGIS POLYGON

I have an existing table in postgres which contains a plain old posgresql polygon. I have added a new column using SELECT AddGeometryColumn ('public','fences','geom',4326,'POLYGON',2); I would ...
0
votes
1answer
22 views

Osm2pgsql failed due to error when I try to import data into PostgreSQL

I am using the following link to install openstreetmap server on my ubuntu 14.04 server. I have followed their tutorial line by line and installed most of the dependencies and everything. When I try ...
1
vote
1answer
49 views

Performance Improvement of Postgres vs PostGIS

I am trying to run the following query thousands of times per second to determine which is any polygon contains the passed in point. SELECT * from areas WHERE poly @> ? Poly is the name of the ...
0
votes
0answers
19 views

GeoWebCache Speed SQL Server Store

How to increase GeoWebCache speed, Am using geoserver 2.7.2 for tile cache and data store creating from a SQL Server database it will take 1 day and above to complete cache and it terminated several ...
1
vote
1answer
28 views

How to store multi-valued attributes in PostGis using Postgresql [closed]

I have a with meterid,meterreading,reader and date read.I wish to store this data using Postgis database. I used this code via postgresql to create the table CREATE TABLE MeterRdg( meterid ...
0
votes
0answers
12 views

how to use st_intersection() with re-projection in POSTGIS?

This is a shipping route from 'portland to busan' and I want to check the route against land_polygons like how much distance is traveled by a route through land.And the problem is while checking the ...
0
votes
1answer
30 views

Alpha Shapes in pgRouting - missing FROM-clause

I am attempting to follow Anita Grazer's post on creating alpha shapes in pgRouting. The article was written several years ago, so some of the functions have been updated and names have changed. I ...
0
votes
0answers
26 views

Aggregate/merge data upon insert into PostGIS (via gdal)

I am working on a project where I take a large raster file (1.5GB+), put it through a number of image-processing operations, and finally convert it to vector data. Being that the raster is large, I am ...