You are not logged in.

Announcement

*** NOTICE: By 30th of September 2022 the forum.openstreetmap.org will be retired, please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators. We expect the migration of data will be finished by that date, you can follow its progress here.***

#1 2022-04-11 19:25:24

Łukasz Kucharski
Member
Registered: 2022-04-11
Posts: 3

Merge maps with the same mapid

Hi,
can you tell me is there a way to merge maps downloaded extract.bbbike.org?
I've downloaded four Openfietsmap Lite maps for Garmin Edge 530 and I've tried to merge them with OSM Combiner.
Unfortunately all these maps share same mapid (starting from 48860001...). Renaming tile files didn't worked.

Of course I can upload these maps to Garmin Edge but I'd like to avoid overlapping.

Last edited by Łukasz Kucharski (2022-04-11 22:16:18)

Offline

#2 2022-04-12 06:31:30

GerdP
Member
Registered: 2015-12-18
Posts: 1,971

Re: Merge maps with the same mapid

I think gmaptool http://www.gmaptool.eu/en/content/gmaptool can help here, but I didn't try this on my own.

Offline

#3 2022-04-12 10:51:06

Łukasz Kucharski
Member
Registered: 2022-04-11
Posts: 3

Re: Merge maps with the same mapid

GerdP wrote:

I think gmaptool http://www.gmaptool.eu/en/content/gmaptool can help here, but I didn't try this on my own.

Thanks. It worked great.

Offline

#4 2022-04-13 15:21:12

GerdP
Member
Registered: 2015-12-18
Posts: 1,971

Re: Merge maps with the same mapid

I'd still expect routing problems (large detours or crashes or direct lines) across tile boundaries where the tiles where not in the same mapset. You didn't write if the four downloaded maps cover distint areas or if they are overlapping, so I can only guess.

Offline

#5 2022-04-13 21:06:14

Łukasz Kucharski
Member
Registered: 2022-04-11
Posts: 3

Re: Merge maps with the same mapid

GerdP wrote:

I'd still expect routing problems (large detours or crashes or direct lines) across tile boundaries where the tiles where not in the same mapset. You didn't write if the four downloaded maps cover distint areas or if they are overlapping, so I can only guess.

They overlap a little bit.
VAhuLX.md.jpg
That's preview from OSM Combiner

Is there any way to avoid overlapping/remove duplicated tiles?

I've got another idea. I can download two pregenerated maps from Openfietsmap.nl (for me it's Central Europe and Eastern Europe). These two maps aren't overlapping.

But I've got a lot of excessive tiles I don't want to have and two mapsets. I want only part of these tiles... Is there a way to do it?

Offline

#6 2022-04-14 09:38:50

GerdP
Member
Registered: 2015-12-18
Posts: 1,971

Re: Merge maps with the same mapid

I think the (better) alternative is to compile the map with mkgmap. The "Openfietsmap Lite" style is available here:
https://github.com/ligfietser/mkgmap-style-sheets

Further info is here:
https://www.openfietsmap.nl/tips-tricks/procedure

Typically you download one or more extracts from geofabrik and merge them. Another approach is download the extracts in osm.pbf format from extract.bbbike.org and merge those, but I am not sure how extract.bbbike.org cares about completeness of relations.
Merging can be done with osmconvert, see https://wiki.openstreetmap.org/wiki/Osmconvert for more info.

Offline

#7 2022-04-14 09:47:25

GerdP
Member
Registered: 2015-12-18
Posts: 1,971

Re: Merge maps with the same mapid

Łukasz Kucharski wrote:

But I've got a lot of excessive tiles I don't want to have and two mapsets. I want only part of these tiles... Is there a way to do it?

Yes, several ways. GmapTool is one, Garmins MapInstaller is another and the only one that I know which has a GUI to select the tiles which should be combined in one gmapsupp.img

Offline

#8 2022-04-26 16:36:23

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Merge maps with the same mapid

GerdP wrote:

I think gmaptool http://www.gmaptool.eu/en/content/gmaptool can help here, but I didn't try this on my own.

With the command line tool from gmaptool you can change the map tile numbers:

gmt.exe -w -e +1000000 -m newmapsetname gmapsupp.img

So for example 93020001 will be to 94020001 and so on.
Of course you have to make sure 94020001 isn't already in use in other mapsets wink
Also the name of the new mapset must be corrected (could be done with Javawa's Device manager as well)
Please note that overlapping maptiles can still be problematic with routing.

Last edited by ligfietser (2022-04-26 17:29:59)

Offline

#9 2022-08-03 14:59:20

GunnarNyb
New Member
Registered: 2022-08-03
Posts: 2

Re: Merge maps with the same mapid

The Map name and PID can be changed with JaVaWa GTMK https://www.javawa.nl/gmtk_en.html
which has a GUI, and therefore easier to use than command lines.
Note that the maps must already be installed in Basecamp to show up in GTMK

Last edited by GunnarNyb (2022-08-03 19:18:45)

Offline

Board footer

Powered by FluxBB