Note: This document is for an older version of GRASS GIS that has been discontinued. You should upgrade, and read the current manual page.
Existing PostGIS topology schema can be overwrite by --overwrite flag.
v.build.pg calls PostGIS functions:
v.out.ogr input=bridges output=PG:dbname=pgis_nc format=PostgreSQL
v.external input=PG:dbname=pgis_nc layer=bridges
v.info map=bridges ... |----------------------------------------------------------------------------| | Map format: PostGIS (PostgreSQL) | | DB table: public.bridges | | DB name: pgis_nc | | Geometry column: wkb_geometry | | Feature type: point | |----------------------------------------------------------------------------| ...
v.build.pg map=bridges ... Topology topo_bridges (6), SRID 900914, precision 1 10938 nodes, 0 edges, 0 faces, 10938 topogeoms in 1 layers Layer 1, type Puntal (1), 10938 topogeoms Deploy: public.bridges.topo ...
v.build.pg map=bridges
Creating new topology schema...
SELECT topology.createtopology('topo_bridges', \
find_srid('public', 'bridges', 'wkb_geometry'), 1)
Adding new topology column...
SELECT topology.AddTopoGeometryColumn('topo_bridges', \
'public', 'bridges', 'topo', 'point')
Building PostGIS topology...
UPDATE bridges SET topo = topology.toTopoGeom(wkb_geometry, \
'topo_bridges', 1, 1)
SELECT topology.TopologySummary('topo_bridges')
Available at: v.build.pg source code (history)
Latest change: Tuesday Feb 17 14:54:26 2026 in commit: 051b9c19442e746e2b51f9c5382809a45230b4c0
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.3dev Reference Manual