[gdal-dev] How to set OGR_INTERLEAVED_READING when using the OSM driver

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Fri Mar 15 11:09:31 PDT 2013


Paolo Corti <pcorti <at> gmail.com> writes:

> 
> Hi guys
> 
> I am giving a try to the new OSM driver, that looks very promising to me ;)
> I am using the latest source code from trunk, and I cannot figure out
> how can I set the OGR_INTERLEAVED_READING when using ogr2ogr.
> 
> If I try to export an OSM file like this the option seems to be
> ignored, and the process export just the first 100k features:
> 
> $ ogr2ogr test.shp myfile.pbf lines -lco OGR_INTERLEAVED_READING=YES
> ERROR 1: Too many features have accumulated in lines layer. Use
> OGR_INTERLEAVED_READING=YES mode

Configuration options are given as --config OPTION VALUE

This is the command I have been using for converting OSM data into Spatialite

ogr2ogr finland.sqlite finland.osm.pbf -f SQLite -dsco SPATIALITE=YES
-gt 10000 --config OGR_SQLITE_SYNCHRONOUS OFF

-Jukka Rahkonen-



More information about the gdal-dev mailing list