NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

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

MrX1
467711
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 ♦
82.5k927201273
accept rate: 23%

edited 30 Aug '11, 12:19

Follow this question

By Email:

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

By RSS:

Answers

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:

×223
×83
×49
×1

question asked: 30 Aug '11, 11:00

question was seen: 6,712 times

last updated: 30 Aug '11, 12:19

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum