[Gdal-dev] how to set OGRFeature names

Brian Hamlin maplabs at light42.com
Thu Oct 11 17:15:46 EDT 2007


Christoph-  I misunderstood  - I see you are building your own OGR 
driver...
You want OGR calls to set OGR geometry based on your own parsing of the 
KML..
ok, thats different...


On Oct 11, 2007, at 8:26 AM, Christoph Ehrler wrote:

> Hi @ all,
>
> currently I'm working on an OGR driver for reading <Model> data out of 
> KML files
> using the SAX parser eXpat. I would like to map the internal KML
> structure to OGR by preserving the <Folder> and <Placemark> names.
> Simplified, folders become to layers and placemarks to features (which
> represent the models).
>
> OK, the name of a layer could be set with the constructor of the
> OGRFeatureDefn::OGRFeatureDefn(const char *pszName).
>
> But how can I set the individual name of a feature?
> Are there any conventions about the name and type and index of an
> OGRField that stores this information???
>
>
> Thanks for your help
> Christoph
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list