[gdal-dev] getting the Layer id or index from a Feature object

mccorb mccorb at cox.net
Sun Aug 24 06:24:55 PDT 2014


Is there anything in the Feature object which contains the layer id/index
which it is in? 

I was thinking I could carry around the Feature and then when I wanted to
update any of the geometry or FielfDefn items I could just call
setField/unsetField but it appears I need to also call Layer.setFeature(...)
to actually save it back to the file after I modify the feature. 

Anyway, I just need to know if I need to carry the layer id along everywhere
or I can get it from the Feature instance. I am using Java API if that makes
any difference.

Thanks.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/getting-the-Layer-id-or-index-from-a-Feature-object-tp5158041.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list