PostgreSQL is an open source object-relational database system.
3
votes
3answers
162 views
For the non-IT savvy GIS person (not great w/ Linux & Apache) could someone suggest how to set up PostgreSQL, Geoserver, and ISS/Apache?
I've heard of GeoCommon as being an easy GIS solution, but I'd like to host the data locally for internal users. I know of a group called Open Geosuite - but the ongoing maintenance is something I'd ...
0
votes
0answers
104 views
Can Nominatim use another OSM importer?
Nominatim comes with osm2pgsql by default and uses it to import the osm files during the initial set up (utils/setup.php).
Problem: I am experiencing problems with importing us-northeast.osm.pbf ...
0
votes
1answer
139 views
osm2pgsql import crashed!
I am currently importing a bz2 country file into PostgreSQL 9.1 database for Nominatim 2 using its setup.php that runs osm2pgsql.
After processing the nodes. it seems to be stuck at a certain spot ...
0
votes
0answers
81 views
Nominatim (postgresql) import problem: unable to start pgsql
While importing the planet files into Nominatim, I encounter the following error below. The import command used is ./setup.php --osm-file us-northeast.osm.pbf --all
I have been following the ...
4
votes
3answers
393 views
How can I update ogr2ogr to include the PostgreSQL driver?
I'm trying to use ogr2ogr to upload a shapefile to a remote PostGres installation. When I ran this command:
celenius:~ celenius$ ogr2ogr -f PostgreSQL PG:"host=255.34.00.00 user=postgres dbname=mydb ...
4
votes
2answers
402 views
Publish SQL Views from Postgres/Postgis to Geoserver
I've trying and reading how to publish a Postgres/Postgis View in Geoserver. I know that I can create an SQL View in Geoserver, but I'd like to define the View in Postgres, not in Geoserver.
Does ...
1
vote
1answer
285 views
Importing planet files into Nominatim
After a gruesome night installing PostgreSQL 9.1, PostGIS 2 and Nominatim 2 on CentOS 6.3 using the instructions here, I am finally at the stage of importing a US planet file.
Problem: In ...
2
votes
1answer
225 views
Problem processing OSM file with osm2pgsql
I have an OSM file and when I want to import it in my PostGIS base using osm2pgsql, I get the following error:
Processing: Node(130k 8.7k/s) Way(0k 0.00k/s) Relation(0 0.00/s)Assertion failed: ...
0
votes
0answers
181 views
assign_vertex_id error
I am trying to test if pgrouting works fine or not. To do so I have created a table containing the following attributes.
Columns:
gid |
length |
the_geom |
source |
target
Now my ...
0
votes
1answer
246 views
Do postgres 9.1, postgis 2.0 from stackbuilder and pgrouting 1.0.3. work together?
I am new to pgrouting and I would like to check if the version I have installed works fine with postgres and postgis.
I have installed postgres 9.1, postgis 2.0 from stackbuilder and pgrouting 1.03.
...
1
vote
1answer
279 views
How to upgrade PostGIS in OSGEO-Live Xubuntu virtual machine?
I have downlaoded the OSGEO-Live 6.0 virtual machine running Linux Xubuntu. I have it running through VirtualBox on a Windows machine. It currently comes preinstalled with a lot of GIS software, ...
1
vote
0answers
78 views
Is this pgRouting perfomance acceptable for my tiny server?
I'm testing pgrouting functions in a tiny server with 2GB of RAM and a dual core processor.
I wrote a program that create client process and they connect to the server in a specific hour to perform a ...
0
votes
2answers
654 views
PostGIS convert geography(Point,4326) to GPS
I got a database with a column of type geography(Point,4326), the data contained looks like 0101000020E610000092E057F66EF73140930035B56CBD4840. How can I convert it to GPS coordinates?
1
vote
2answers
711 views
How to display a image from Postgres database
I have Images in bytea form in PostgreSQL/PostGIS database, i want to display them in a webpage using PHP - PostgreSQL.
I got lot of examples and I worked out but not getting output from them...
Few ...
5
votes
1answer
134 views
Given 2 LINESTRINGs with common point, how to extract common point?
I have 2 LINESTRING geometries. I know both share a common point. Using PostGIS for Postgres, what is the cleanest way to extract the common point?
Example with illustration:
How do I extract the ...
0
votes
1answer
182 views
How to get City, State, Numeration, etc from OSM roads by Geofabrik?
I'm really new in this GIS world. I downloaded a shp file from Geofabrik (http://download.geofabrik.de/osm/south-america/chile.shp.zip) and imported it to Postgresql using Postgis. If I see the road ...
4
votes
0answers
84 views
Pros and Cons of virtualisation technology for database-server and datastorage [closed]
Yesterday we had a chat about performance and restorability and I realized how many good things a virtualisation environment can bring to me - but as I'm a little sceptic concerning performance I'm ...
0
votes
0answers
15 views
Using PostGIS to create a grid map and count points in grids [duplicate]
Possible Duplicate:
How to create a regular polygon grid in PostGIS?
I'm trying to divide the map of an area into 1 km x 1 km square grids and ultimately, count and retrieve how many points ...
1
vote
1answer
289 views
error performing wfs-t insert in postgres 9.1.4
I am getting error performing insert exception while performing wfs-t insert operation when i use postgres 9.1.4 and postgis 2.0. but i get successful insert when using postgres 9.0.1 and postgis ...
3
votes
1answer
213 views
Are there limitations using a PostGIS out-db raster?
I have been trying to import a large raster into a PostGIS 2.0 database and hit a few stumbling blocks.
Initially when I tried to import the raster using raster2pgsql, I would receive the following ...
0
votes
2answers
159 views
Why doesn't QGIS accept my manually altered geospatial column?
I have a table with a geospatial column with srid 28992 but noticed that if i try to show it in QGIS (v1.9) on any openlayer map (through the OpenLayers plugin) it is off by a few hundred meters.
...
3
votes
1answer
224 views
Duplicate ObjectID in ArcSDE Table
After making a check in from an arcpad AXF file, i remark that there's duplicate object ID records , this Arcsde pgsql table is versioned and edited by Axf checkins and a .net engine application. the ...
-5
votes
1answer
162 views
How to create,store and retrieve the spatial data in postgresql [closed]
i am new to postgresql/postgis
can anyone explain in steps about how to store the spatial data and retrieve the spatial data and visualise in map in a proper steps.. pls . its very urgent..
1
vote
1answer
75 views
Thematic maps on Non Spatial Data in MapGuide
I need to create the thematic map on a polygon layer. But the data is not available in the layer; I am using Postgres database for that. It means I need to create the themes on layer using non spatial ...
2
votes
1answer
264 views
Error creating a spatial database. ERROR : could not load library “/usr/pgsql-9.1/lib/rtpostgis-2.0.so”
I am running PostgreSQL 9.1 with Postgis 2.0 on Fedora 15.
When trying to install the raster support,
psql -d mydb -f rtpostgis.sql -v ON_ERROR_STOP=1
I get the following error
...
3
votes
0answers
178 views
How to save table from PostgreSQL to MapInfo File?
I have two tables:
1 with geometry in WGS
2 with geometry in Local System
I tried this:
ogr2ogr -f "MapInfo File" output2.tab PG:"host=localhost user=postgres password=123456 dbname=postgis" -sql ...
1
vote
1answer
128 views
Saving rasters to postgresQL using raster2pgsql, saving forecast time
I would like to save a forecast which is saved as geoTiffs into a postgresQL database. I've been able to import the rasters using:
raster2pgsql -s 0 -I -d tiff/field*.tiff -F public.latest | psql -d ...
2
votes
1answer
586 views
How to find the nearest point by using PostGIS function?
table A:
lat | long | the_geom | code | sign
13.8433095 | 100.6360357 | 0101000020E61.... | ABC | start_point
13.7544738 | 100.5459646 | 0101000020E6..... | ABC | end_point
13.4124215 | 100.6232332 ...
6
votes
3answers
145 views
How to select only Spatial tables from the postgres database?
My database contains both Spatial and Non-Spatial tables, but I want to retrieve only Spatial table from the query.
Any suggestions to select only Spatial tables. 'the_geom' is the geometry column in ...
4
votes
1answer
404 views
How to compare geometry in PostGiS?
I have a two tables.
1 table have srid=4326
2 table have srid=70066
I want to compare geometry columns of this tables. I find function ST_Equals(geometry, geometry) but its not what i want. I need ...
1
vote
1answer
375 views
Write spatial operations to PostGIS from QGIS or ArcGIS
I need to write my spatial operations to a (new) postgis layer (as the data is to large for a shp file). Can this be done in the QGIS browser or from ArcGIS without SDE?
When you go (for example) --> ...
0
votes
1answer
181 views
GeoServer and local PostgreSQL database without Internet
simple question: can I work on GeoServer and local PostgreSQL database on my PC without need for Internet connection ?
would I be able to connect GeoServer to the database and create layers ? also ...
1
vote
0answers
103 views
How to connect the Postgres database table to MapGuide? [duplicate]
Possible Duplicate:
How can I properly add PostGIS data into MapGuide Maestro?
I have added a .shp file into MapGuide Maestro, now I want to connect/link a Postgres database ...
2
votes
2answers
141 views
Opensource Tools for Optimizing Server Performance
I use a server with a basic Microsoft OS primarily for data storage and as a central repository for edited vector data. These data are not intended to be used as mapping or GIS products available ...
7
votes
2answers
263 views
How to catch PostgreSQL/PostGIS errors in GDAL/OGR Python bindings?
Is it possible to catch PostgreSQL output error messages in OGR after a query has failed?
For example
conn.ExecuteSQL('SELECT * FROM non_existing_table;')
In Postgres this returns an error ...
2
votes
1answer
290 views
How to relate Non-Spatial table to Spatial table in two different Postgis DBs?
I need to relate a Non-spatial table to Spatial table, but both are in different database.
Spatial_table(dbname:dist)
gid
district_name
district_code
geom
Non_Spatial(dbname:census)
ID
...
3
votes
0answers
263 views
How can I properly add PostGIS data into MapGuide Maestro?
I am having trouble connecting a PostGIS database to MapGuide Maestro. Actually, I have added the PostGIS data into Maestro, but when I click to validate the layer it shows an error message:
...
6
votes
1answer
817 views
Postgresql for Qgis and Arcgis - What to do/What not to do
Is it possible to use postgresql with QGIS and ArcGIS? One database for different clients. Is it anything that I have worry or any problems to use the DBMS from two different software? I know that I ...
0
votes
0answers
86 views
Why does Geoserver save features in wrong projection?
I edit WFS layer with openlayers and after editing save changes. But edited object saved in wrong projection.
At first Geoserver get layer from PostGIS with projection EPSG70066. In geoserver i ...
0
votes
1answer
223 views
To get attribute data of polygon layer by giving Lat/Lon
Is anyone having an idea about how to get attribute data of a polygon layer by giving Coordinates with in that polygon. Here i have tried with these codes..
SELECT * FROM kar_bbmp_198 WHERE ...
0
votes
0answers
483 views
Problems with highlight data from database using MapServer WMS and OpenLayers
did someone try highlight features using MapServer and OpenLayers? I tried to create map, where I display layer from MapServer by WMS using OpenLayers. It works, but I cannot highlight features to the ...
2
votes
1answer
157 views
Direct DBMS sql queries and ArcSDE geodatabase
i want to make updates from Arcobjects on several tables stored on a ArcSDE 10.1 versionned geodatabase based on Postgresql 9.0.5 , none of these update require spatial data , and making these updates ...
3
votes
2answers
240 views
PostGIS: incorrect interpretation of a polygon that intersects the 180th meridian
I try to find out all geopoints which intersect the polygon set as a parameter.
The problem is when I pass polygon that roughly covers an area of Bering Strait (nearby 180 longitude):
So I use the ...
0
votes
0answers
260 views
Implementing custom (Vincenty/Haversine formula) functions for MySQL vs Using PostGIS?
I currently am using MySQL for all of my relational data. I have hit a crossroads with geo calculations. Since, MySQL does not have good support for spatial functions, I am contemplating on using ...
3
votes
1answer
166 views
How to connect a PyQGIS plugin with Postgres?
I have some questions for you:
I created a python-plugin in QGIS,
then I created a Qt gui fom my plugin
and at last I created a Postgres DB
now I need to make a connection between Qt-gui and ...
5
votes
5answers
338 views
Improve performances on distance coverage routing - PostgreSQL
I have to create layers of land coverage from one point to anywhere around on a given street network for a given distance (ex: FROM house, DISTANCE 30000m)
An important factor to understand; I need ...
4
votes
2answers
404 views
Why does ST_Area(g.geom) + ST_Area(p.geom) - ST_Area(ST_Union(g.geom,p.geom)) produce negative result when using ST_Overlaps(g.geom, p.geom) = true?
I have two set of shape data. Let's say file gov.shp contains list of post codes and their boundaries. File post.shp contains list of government area name and their boundaries. I want to find out the ...
7
votes
1answer
92 views
Finding similar trips in a database
I have a trips table and a bus_stops table. The trips table has a from_stop_id and a to_stop_id. The bus_stops table has lat and lng information for each bus stop.
How can I order the trips in ...
2
votes
1answer
108 views
Postgis nested query trouble
I am having difficulty writing a nested postgis query. I have a single table from which I need to create a view in PostgreSQL.
I have created the view with the following command
create view ...
0
votes
0answers
121 views
QGIS does not load all geometry-bearing tables from my database
I have postgreSQL database that I am connecting to through QGIS. When I connect to the database via the "Add PostGIS Layer" button, I get the following error message:
"Database connection was ...




