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

Hi,

I've got this issue. I have already downloaded two diff. country extracts (e.g. Austria and Swiss) How can I achieve, that the roads at the border crossings will be joined so I can navigate from Austria to Swiss ?

Update : In my case I would like to give an option to the user to choose which country he wants to download..e.g. Austria..and in couple weeks later he can download Swiss and he will be able to navigate from Austria to Swiss..

Thanks

asked 15 Dec '14, 09:43

sports-girl1's gravatar image

sports-girl1
1113
accept rate: 0%

edited 15 Dec '14, 14:17


Not a direct answer but OsmAnd has solved this exact problem. You can browse their map repository and download individual countries and U.S. states at will and the internal routing engine will route between them. So you might be able to learn something from their source code.

permanent link

answered 15 Dec '14, 17:14

ToeBee's gravatar image

ToeBee
976920
accept rate: 27%

If you have two extracts then you could try merging them, though if they are from different dates that alone might introduce extra problems (the roads they have in common might have changed between the two different times).

For merging two extracts, you could look at osmconvert or osmosis for example.

permanent link

answered 15 Dec '14, 14:28

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

As I mentioned I would like to distribute maps by country. So I cant merge it first. Somehow I need to know exact border points between those countries (extracts) and distribute maps with that same border points. Is there any easy way how to make intersection between country border line and border ways ?

(15 Dec '14, 14:38) sports-girl1
1

As @EdLoach says the OSM data model offers NO SUPPORT for continuity across extract dates, so merging two different time periods may be a complex conflation job, and therefore impossible on a user platform.

(15 Dec '14, 19:52) SK53 ♦

(I presume you're using the geofabrik country downloads?). One approach is to download the europe file, and then cut out the area you are interested in (Switzerland + Austria). Then you will have continuous roads.

permanent link

answered 15 Dec '14, 10:44

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

2

Yes its easy solution but in my case i would like to give an option to the user to choose which country he wants to download..e.g. Austria..and in couple weeks later he can download Swiss and he will be able to navigate from Austria to Swiss..

(15 Dec '14, 11:25) sports-girl1

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:

×83
×58
×49

question asked: 15 Dec '14, 09:43

question was seen: 3,355 times

last updated: 15 Dec '14, 19:52

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