PostGIS: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
Line 6: Line 6:
* {{cmd|sql|desc=SQL support in GRASS GIS}} help page
* {{cmd|sql|desc=SQL support in GRASS GIS}} help page


* {{cmd|grass-pg}} help page
* {{cmd|grass-pg|desc=PostgreSQL driver in GRASS}} help page
* {{cmd|grass-odbc}} help page
* {{cmd|grass-odbc}} help page



Revision as of 10:05, 29 October 2011

See also working with external data in GRASS 7.

Help pages

Link to external dataset

Import into GRASS

  1. v.in.ogr (import only geometry column from postgresql/postgis)
  2. v.clean

There is a fundamental difference between the PostGIS format which is non-topological and the internal GRASS format which is topological and which, thus, does not really allow for overlapping polygons. You can digitize them, but they are not really useful...

You cannot directly process a PostGIS table in GRASS. GRASS has its own internal vector format.

You can link a GRASS layer to a PostgreSQL attribute table, though. v.db.connect

See also