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...@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=gi...@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
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to