1

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"

1
  • 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
    Commented Aug 5, 2016 at 6:09

1 Answer 1

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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