Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.