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 If I try to export the OGR_INTERLEAVED_READING as an env variable, the process fails: $ export OGR_INTERLEAVED_READING=YES $ ogr2ogr test.shp myfile.pbf lines --debug ON OGR: OGROpen(myfile.pbf/0x914ef78) succeeded as OSM. Shape: DBF Codepage = LDID/87 for test.shp Shape: Treating as encoding 'ISO-8859-1'. OSM: OGR_INTERLEAVED_READING = 1 OSM: Got bounds : minx=11.361760, miny=40.717850, maxx=14.099890, maxy=42.916190 OSM: For layer points, new max size is 128 OSM: For layer points, new max size is 320 OSM: For layer points, new max size is 608 OSM: For layer points, new max size is 1040 OSM: For layer points, new max size is 1688 OSM: For layer points, new max size is 2660 OSM: For layer points, new max size is 4118 OSM: For layer points, new max size is 6305 OSM: For layer points, new max size is 9585 OSM: For layer points, new max size is 14505 OSM: For layer points, new max size is 21885 OSM: For layer points, new max size is 32955 OSM: For layer points, new max size is 49560 OSM: Switching to 'points' as they are no more feature in 'lines' OGR2OGR: 0 features written in layer 'test' OSM: Number of bytes read in file : 14874118 According to the documentation anyway, the option should not be set at all, as "the ogr2ogr application has been modified to use that OGR_INTERLEAVED_READING mode without any particular user action". Ideas? Am I doing something obviously wrong? thanks p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
