<div dir="ltr"><div><div><br><br>On Mon, Sep 28, 2015 at 11:22 AM, Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> 2015-09-28 16:56 GMT+02:00 Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>>:<br>><br>> [...]<br>><br>> > what is the meaning for native vector maps? Does this limit the layer as in<br>> > case of Vect_set_constraint_field() or do I actually have to call<br>> > Vect_set_constraint_field() to read features only in one layer?<br>><br>> AFAIK currently it has no meaning to native maps, `layer` argument is<br>> used only by OGR direct access [1].<br><br></div>OK, thanks.<br><br></div>I have an additional question:<br><br>When getting field number to be used in Vect_set_constraint_field() and with categories, should I use Vect_get_field_number()? The doc says "Get field number of given field" but not when it should be used. I have seen it in other modules but I'm not sure if this is correct, esp. for direct OGR access.<br><div><div><br>> Ma<br>><br>> [1] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/open.c#L206">https://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/open.c#L206</a><br>><br>> --<br>> Martin Landa<br>> <a href="http://geo.fsv.cvut.cz/gwiki/Landa">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>> <a href="http://gismentors.cz/mentors/landa">http://gismentors.cz/mentors/landa</a><br><br></div></div></div>