[gdal-dev] Relation members ids in OGR OSM driver

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Relation members ids in OGR OSM driver

Nikolai Bezdna
Hello,
Is there an option to get ids for relation members and node ids for ways in OGR OSM driver?

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relation members ids in OGR OSM driver

Even Rouault-2
On jeudi 4 avril 2019 01:50:17 CEST Nikolai Bezdna wrote:
> Hello,
> Is there an option to get ids for relation members and node ids for ways in
> OGR OSM driver?

As far as I remember, no.
The OGR OSM driver is a "medium/high-level" driver trying to reconstruct OGC
Single Feature geometries from OSM topological structure.
The source code of GDAL includes low level parsers

https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrsf_frmts/osm/
osm_parser.h
https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrsf_frmts/osm/
osm_parser.cpp
that you could use for that purpose.

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev