Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When I crop OpenStreetMap data using Osmosis with the --bounding-box option, it seems to only give me nodes and ways that are fully contained within the bounding box. There are several long highways through my region that don't show up at all because no segments lie inside my (relatively small) query area. I don't mind if the long features extend beyond the bounding box, only that all of the features that overlap the bounding box be included. Keep in mind I'm using Osmosis to chop down a large osm file (a cloudmade California file); I'm not running an XAPI query.

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

You can make some test with completeWays, completeRelations or cascadingRelations options. On of them should do the trick .....(the first one I guess).

If not, what about making your -bounding-box larger to keep all needed information, and crop again later after transforming data into shapefile or other format with your software tool.

Edit : the clipIncompleteEntities=yes option is probably even better, according to that post.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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