Changes between Version 32 and Version 33 of Grass7/VectorLib/PostGISInterface


Ignore:
Timestamp:
Nov 29, 2012, 12:29:36 AM (11 years ago)
Author:
martinl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Grass7/VectorLib/PostGISInterface

    v32 v33  
    4747v.info map=urbanarea
    4848...
    49 |----------------------------------------------------------------------------|
     49 |----------------------------------------------------------------------------|
    5050 | Map format:      PostGIS (PostgreSQL)                                      |
    5151 | DB table:        public.urbanarea                                          |
     
    5454 | Feature type:    polygon                                                   |
    5555 | Topology:        pseudo (simple features)                                  |
     56 |----------------------------------------------------------------------------|
     57...
     58}}}
     59
     60'''Write example:'''
     61
     62{{{
     63# define output vector format
     64v.external.out dsn=PG:dbname=grass format=PostgreSQL options=topology=YES
     65# create random points map
     66v.random out=test_points n=1000
     67# access created external data
     68v.info test_points
     69...
     70 |----------------------------------------------------------------------------|
     71 | Map format:      PostGIS (PostgreSQL)                                      |
     72 | DB table:        public.test_points                                        |
     73 | DB name:         grass                                                     |
     74 | Geometry column: geom                                                      |
     75 | Feature type:    point                                                     |
     76 | Topology:        pseudo (simple features)                                  |
     77 |----------------------------------------------------------------------------|
     78...
     79}}}
     80
     81For more examples see [http://grasswiki.osgeo.org/wiki/PostGIS wiki page] from GRASS Wiki.
     82
     83== Topological access ==
     84
     85'''Export GRASS vector data to PostGIS as topological elements:'''
     86
     87{{{
     88v.out.postgis -l input=urbanarea dsn=PG:dbname=grass
     89}}}
     90
     91'''Read example:'''
     92
     93{{{
     94# create a link to PostGIS table
     95v.external dsn=PG:dbname=grass layer=urbanarea
     96# access data as normal vector map in GRASS
     97v.info map=urbanarea
     98...
     99 |----------------------------------------------------------------------------|
     100 | Map format:      PostGIS (PostgreSQL)                                      |
     101 | DB table:        public.urbanarea                                          |
     102 | DB name:         grass                                                     |
     103 | Geometry column: geom                                                      |
     104 | Feature type:    polygon                                                   |
     105 | Topology:        PostGIS (schema: topo_urbanarea)                          |
     106 | Topology column: topo                                                      |
    56107 |----------------------------------------------------------------------------|
    57108...
     
    79130}}}
    80131
    81 For more examples see [http://grasswiki.osgeo.org/wiki/PostGIS wiki page] from GRASS Wiki.
    82 == Topological access ==
    83 
    84 For more information see [wiki:Grass7/VectorLib/PostGISEditing PostGIS Topology] page.supports
     132For more information see [wiki:Grass7/VectorLib/PostGISEditing PostGIS Topology editing] page and [http://grasswiki.osgeo.org/wiki/PostGIS_Topology wiki page] from GRASS Wiki.