You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2012-02-14 13:47:20
- UliBär
- Member

- Registered: 2011-09-15
- Posts: 55
How to split "not coherent" maps with the mkgmap splitter?
Hi everyone,
i just encountered a problem:
I try to make a map containing Germany, the Netherlands and Iceland. To do so, i downloaded the extracts for the three countries from the Geofabrik and combined them with osmconvert. The filesize is a reasonable 1.57 GB as a PBF-file. This file i feed to the splitter and it reads the whole input but the split result is way to small and only contains the Icelandic map. I think this is because the map is not coherent in its self and the splitter only works on the first encountered part of the map, is this case Iceland.
Is there any way to "tell" the splitter to work on the "other" data as well?
Thanks for any help!
Aloha, Uli
Fools aren't born, pretty girls make them in their spare time...
Offline
#2 2012-02-14 14:19:57
- kukuk
- Member
- Registered: 2011-09-13
- Posts: 225
- Website
Re: How to split "not coherent" maps with the mkgmap splitter?
Hi,
you cannot join extracts again to one new one: the ways between this extracts will be still broken. You should create your own polygon and extract the area you need from a larger extract.
About the splitting problem: sounds like the bounding box of the data is wrong.
Thorsten
Offline
#3 2012-02-14 14:56:35
- UliBär
- Member

- Registered: 2011-09-15
- Posts: 55
Re: How to split "not coherent" maps with the mkgmap splitter?
Hi Thorsten,
thanks, but the broken ways and relations at the borders won't bother me, cause i don't want to route over a border, so this doesn't matter.
The other problem is, the map data for Iceland and "the rest" are separated "data islands" with nothing in between, so "my extract" would consist of two polygons - would this work?
I just want a map containing the data for Iceland and my homeland, i don't want the data for the UK and the Atlantic ocean between them. But maybe i should simply create an own map for Iceland, put that on a separate memory card and than simply swap the cards when i arrive at the airport? ![]()
Aloha, Uli
Fools aren't born, pretty girls make them in their spare time...
Offline
#4 2012-02-14 15:38:48
- csdf
- Member
- From: UK, living in Abu Dhabi
- Registered: 2009-08-11
- Posts: 313
- Website
Re: How to split "not coherent" maps with the mkgmap splitter?
Just a guess, but you could try using the --mixed option for splitter.
Offline
#5 2012-02-14 16:20:10
- kukuk
- Member
- Registered: 2011-09-13
- Posts: 225
- Website
Re: How to split "not coherent" maps with the mkgmap splitter?
The other problem is, the map data for Iceland and "the rest" are separated "data islands" with nothing in between, so "my extract" would consist of two polygons - would this work?
You can create on polygon file with two polygons inside.
I just want a map containing the data for Iceland and my homeland, i don't want the data for the UK and the Atlantic ocean between them. But maybe i should simply create an own map for Iceland, put that on a separate memory card and than simply swap the cards when i arrive at the airport?
I personal would prefer 2 different maps.
I don't know which GPS-device you have. I personal would prefer 2 different maps. On most Garmin GPS, you can copy both names with different names on the device. Else you can install the Maps in MapSource and export them as one gmapsupp.img, or use tools like gmt.
No need to swap the memory card, but that's of course possible, too.
Thorsten
Offline
#6 2012-02-14 17:01:16
- UliBär
- Member

- Registered: 2011-09-15
- Posts: 55
Re: How to split "not coherent" maps with the mkgmap splitter?
You can create on polygon file with two polygons inside.
Thank you, i found out myself in the OSM-Wiki about poly-files. So i could cut the needed data out of an europe extract, but that would require to download the whole dataset.
I personal would prefer 2 different maps.
I don't know which GPS-device you have. I personal would prefer 2 different maps. On most Garmin GPS, you can copy both names with different names on the device. Else you can install the Maps in MapSource and export them as one gmapsupp.img, or use tools like gmt.
No need to swap the memory card, but that's of course possible, too.
I think, this is the method to use, cause i have an etrex Vista HCx, which only supports one gmapsupp.img file. ![]()
I only have to be careful to use different map- and F-IDs for the different datasets, so gmt.exe will put the maps in one gmapsupp.img without errors and i have to provide a TYP-file for every single FID. This way i have to download a lot less data. ![]()
Thanks everyone!
Aloha, Uli
Fools aren't born, pretty girls make them in their spare time...
Offline