I am trying to convert from .osm to a SQLite database using the following command:

ogr2ogr -f "SQLITE" -dsco SPATIALITE=YES OSM_01.db OSM_01.osm

However I am getting an error message "ERROR 1: String buffer too small"

  • Can you provide a link to the .osm dataset, or give the approximate bounding box of the dataset in which the error will occur? – AndreJ Aug 5 '16 at 6:09

As mentioned at Creating Spatialite DB from Swedish OSM, you might consider updating your command as follows:

ogr2ogr -f "SQLITE" -dsco SPATIALITE=YES OSM_01.db OSM_01.osm  -progress --config OGR_SQLITE_SYNCHRONOUS OFF --config OSM_COMPRESS_NODES YES
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.