DESCRIPTION

v.out.ogr converts GRASS vector data to OGR format. OGR (Simple Features Library) is part of the GDAL library, so you need to install gdal to use v.out.ogr.

Supported OGR Vector Formats

ESRI Shapefile
Mapinfo File
TIGER
GML

For further available drivers go here

EXAMPLE

Export lines of GRASS 5.7 vector map to SHAPE format (generates /tmp/testogr.shp #and related files):
v.out.ogr input=multi typ=line dsn=/tmp layer=testogr

Export areas of GRASS 5.7 vector map to SHAPE format (generates /tmp/testogr.shp #and related files):
v.out.ogr input=multi typ=area,centroid dsn=/tmp layer=testogr

Export lines to GML format (generates /tmp/testogr.gml file with layer 'testogr'):
v.out.ogr input=multi type=line dsn=/tmp/testogr.gml layer=testogr format=GML

Export areas directly to PostGIS:
v.out.ogr input=polygons type=area dsn="PG:dbname=postgis" layer=polymap format=PostgreSQL

REFERENCES

OGR vector library
OGR vector library C API documentation

SEE ALSO

GRASS 5.7 Tutorial pages

v.format, v.in.ogr

AUTHOR

Radim Blazek, ITC-Irst, Trento, Italy

Last changed: $Date: 2004/04/14 19:19:40 $