Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 79

PostGIS is an extension for the PostgreSQL object-relational database that adds support for geographic objects.

9 votes

Moving a PostGIS Installation

This post http://traviscline.com/blog/2010/04/28/moving-postgis-databases-between-machines/ seems to indicate that pg_dump -Fc is what you want. …
Ian Turton's user avatar
  • 83.2k
3 votes

How to insert data into postgis database with phpPgAdmin?

Another way to do this is to use SSH tunnels - use putty (or other SSH client) to log in to the remote machine and set a tunnel from localhost:5433 to remotemachine:5433. See http://howto.ccs.neu.edu/ …
Ian Turton's user avatar
  • 83.2k
0 votes

shp2pgsql srid 2262 polygons NOT in geocordinates

That seems reasonable as EPSG:2262 is measured in feet. Either use ST_Transform to reproject your coordinates on output in the data base or use ogr2ogr to reproject the shapefile to EPSG:4326 to get a …
Ian Turton's user avatar
  • 83.2k
1 vote
Accepted

How does ST_Azimuth work?

A point to the north will give an azimuth near 0 or 360. When it is exactly to the north it will be 0 as it moves to the east it will become larger until is is 45 a NorthEast of your point, if you p …
Ian Turton's user avatar
  • 83.2k
2 votes

Search for all points within a bounding box

Please, please make sure you add a spatial index to your table, then you can use the && operator. SELECT ST_X(geom) as longitude, ST_Y(geom) as latitude FROM stores WHERE geom && ST_MakeEnvelope(lef …
Ian Turton's user avatar
  • 83.2k
4 votes
Accepted

How to check if geometry column has spatial indexing or not

You can find a list of all indexes on a table with: SELECT indexname, indexdef FROM pg_indexes WHERE tablename = 'name' AND schemaname = 'schema'; which will give a result like: "brownsh_pkey" "CREA …
Ian Turton's user avatar
  • 83.2k
2 votes
Accepted

unable to calculate geohash from a large geometry

It looks like your data is not in decimal degrees, ie. it should be between +/-180 longitude and +/-90 latitude. You probably need to reproject your input data to EPSG:4326 before geohashing it.
Ian Turton's user avatar
  • 83.2k
4 votes
Accepted

Using PostGIS to calculate where lines intersect using Geography objects

Try densifying your lines using ST_SEGMENTIZE: select st_astext(st_intersection( st_segmentize(ST_GeographyFromText('LINESTRING(-118.4079 33.9434, 2.5559 49.0083)'),10) ,st_segmentize( …
Ian Turton's user avatar
  • 83.2k
3 votes

Performing PostGIS calculations without deploying a database

You can look at the postgis source code to pull out the relevant geos functions to reproduce it, whether that's worth your time or not is another question. …
Ian Turton's user avatar
  • 83.2k
1 vote

Kosmtik: PostGIS Plugin: FATAL: Peer authentication failed for user

Postgis is trying to use peer authentication but failing, so I suspect that you are not logged in as user _rendered so when postgis checks with the system it rejects the login. …
Ian Turton's user avatar
  • 83.2k
1 vote
Accepted

Return latitude and longitude from geometry point type

In fact provided you always store your points as lon/lat (4326) then just st_x(geom) as lng, st_y(geom) as lat should work.
Ian Turton's user avatar
  • 83.2k
2 votes

Loading shapefile into PostGIS: ${TRAINING_ROOT} Directory

It's a shell variable - but in this context it just means replace $TRAINING_ROOT with where ever you unpacked the data.
Ian Turton's user avatar
  • 83.2k
1 vote

PostGIS: Can´t preview geometry when in different schema than public - why?

PostGIS should stay in the public schema (then everyone can see it) while your data can live in individual schemas. … This allows you to upgrade PostGIS without needing to backup, drop and restore the data tables since only public needs to be changed. …
Ian Turton's user avatar
  • 83.2k
1 vote
Accepted

org.geotools.jdbc.JDBCDataStore stores shape files in the database but files stored in own t...

When you create a JDBCDataStore on a PostGIS database you specify the database and schema, then you create FeatureSources (and FeatureStores if you want to write) using a FeatureType (confusingly often …
Ian Turton's user avatar
  • 83.2k
0 votes

GeoServer layers containing cities in each country, given that all the cities reside in the ...

I don't really understand what you are trying to do but the new SQL views datastore in GeoServer 2.1beta may be what you are looking for. See http://gridlock.openplans.org/geoserver/trunk/doc/en/user/ …
Ian Turton's user avatar
  • 83.2k

1
2 3 4 5
14
15 30 50 per page