[gdal-dev] Importing OSM: closed ways being skipped

Even Rouault even.rouault at spatialys.com
Fri Sep 27 15:06:25 PDT 2019

On vendredi 27 septembre 2019 16:58:08 CEST Richard Marsden wrote:
> Even,
> Thanks  - I'll have a look at ds.GetNextFeature().  I'll note that the
> sample (C++) code on the interleaved reading section, is where I got
> the double loop that looped over layers, and then features within that
> layer. This led me astray because it loops over the layers in index
> order - doing this results in the closed ways being skipped.

No, your code doesn't implement the code of the docs. It should be a 3-level 
Anyways ds.GetNextFeature() should be easier

Spatialys - Geospatial professional services

More information about the gdal-dev mailing list