Why not ask your question on the new OpenStreetMap Community Forum?


I've made an extract of whole country using osmosis and *.poly file with border nodes coordinates.

Is it possible to avoid exceeding roads which starts in extract country through country borders ? I want those roads finished exactly at country border.

Thanks for any advices..

asked 30 Aug '11, 11:00

MrX1's gravatar image

accept rate: 0%

No, this is not possible with Osmosis. It would require the creation of a pseudo node that sits on the intersection of the country border with the road, and Osmosis doesn't do that. I don't know of any program that does it, actually. You can load OSM data into PostgreSQL and then intersect each road with the country border; this will cut the roads in the way you want, but your geometries will then not be strictly based on OSM nodes any more.

If you use --clipIncompleteEntities=true then ways will stop at the last node before the border.

permanent link

answered 30 Aug '11, 11:13

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

edited 30 Aug '11, 12:19

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Aug '11, 11:00

question was seen: 6,294 times

last updated: 30 Aug '11, 12:19

powered by OSQA