[GRASS-dev] OGR write support in GRASS 7

Martin Landa landa.martin at gmail.com
Tue Jan 5 15:22:35 EST 2010


Hi,

direct OGR read access is implemented in the most of vector modules
[1]. You can access OGR layer directly (i.e. without linking it via
v.external) using 'map' and 'layer' parameters, e.g.

v.extract input=PG:dbname=nc_spm_08 at OGR layer=busstopsall
where="STREET_1 = 'William Moore Dr.'" output=b1

Currently I started working on write OGR support. 'output' parameter
can be used for OGR datasource name, anyway parameter for OGR layer is
not available. It would require to add new parameter 'olayer' to the
most of vector modules. For native format it would be optional
parameter which defines layer name. In the case of OGR layers it would
specify OGR layer name, e.g.

v.extract map=obce where="NAZEV = Solany" output=PG:dbname=gisdb at OGR olayer=obce

What do you think about that?

Martin

[1] http://trac.osgeo.org/grass/wiki/Grass7/VectorLib#DirectOGRreadaccess

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list