Hi,

It may not be a good idea to use -clipsrc with OpenStreetMap data at least
without some thinking. Clipping is cutting linestrings like highways which
intersect the clipping geometry into pieces and that is changing the
geometry type of clipped highway from linestring into multilinestring. Such
a highway cannot be stored into Spatialite table "lines" where it normally
belongs because of geometry type constraint. You can add -nlt
PROMOTE_TO_MULTI parameter into ogr2ogr but then all the highways will be
converted into multilinestrings. It may be OK for you to do so, but think
about that first.

Alternative way for clipping OSM data would be to use special tools like
Osmosis. I believe is has an option that selects the intersecting features
without cutting them into pieces.

-Jukka Rahkonen-

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to