PostGIS - Tipps und Tricks
Aus Geoinformation HSR
Version vom 9. Oktober 2007, 02:47 Uhr von Stefan (Diskussion | Beiträge)
Siehe auch
SRID
Der SRID (projection identifier) wird an drei Orten verwaltet:
- In der geometry column: select SRID(the_geom) from mytable limit 5;
- As a constraint on the table for the geometry column: \d mytable
- In the geometry_columns system table: select * from geometry_columns;
Mit der Methode UpdateGeometrySRID([<schema_name>], <table_name>, <column_name>, <srid>) kann man
shp2pgsql
Man beachte beim Import von Shapefiles das .prj File. Ohne weitere Angaben wird der SRID auf -1 gesetzt. Siehe SRID (Quelle).
Eine Alternative zu shp2pgsql ist ogr2ogr von OGR.
Mit einfachster Webapplikation und PostGIS zur Online-Karte
- mit Java, GML und Google Maps - Rendering roads on Google Maps using Java and PostGIS.
- thetimoneygroup.net - On-the-Fly Spatial Analysis With PostGIS and Google Earth.
- (mit Oracle XML-DB).