Martin Landa wrote:
Hi,
2009/10/17 Markus Metz <[email protected]>:
It seems that GV_FORMAT_OGR refers now to both OGR layers linked with
v.external and direct OGR access, but these two require different handling.
Add new GV_FORMAT_OGR_DIRECT ? See temporary workaround in [1].
I am not sure if it's really needed, direct read/write access is valid
only for vector maps from 'OGR' mapset.
Map->format == GV_FORMAT_OGR && strcasecmp(Map->mapset, "ogr")
But probably GV_FORMAT_OGR_DIRECT would be better solution.
Also to avoid rewriting existing code that uses GV_FORMAT_OGR for
v.external linked vectors, see e.g. [1,2].
[1]
https://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/open.c?rev=39545#L327
[2]
https://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/open.c?rev=39545#L437
Markus M
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev