Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help to compile own maps #5

Open
RealVegOs opened this issue Mar 31, 2022 · 13 comments
Open

Need help to compile own maps #5

RealVegOs opened this issue Mar 31, 2022 · 13 comments

Comments

@RealVegOs
Copy link

Hi,
sorry for bothering you, but this drives me crazy.

I downloaded a .osm.pbf file from GeoFactory, spitted and compiled it. It worked, but looked more than rather ugly. http://garmin.openstreetmap.nl/ has a queue for map requests of about 0.3 million and I never got a mail from them with a link for watching progress.

For me, it would be better, to have a folder with the files for the mapnik style in it, so I can add it to the mkgmap command, e.g. --style-file=mapnik to compile the map by myself instead of waiting some years to get my map.

I'm not familar with the stuff you are doing here in this repo. Please provide a folder for the mapnik style with .args, .txt, .typ, inc folder, info, lines, options, points, polygons, relations, style-content.txt and version file so I can compile mapnik style maps by myself.

Thank you very very much!

@Jorisbo
Copy link
Owner

Jorisbo commented Mar 31, 2022

Hello Bruno, the mlgmap-style files and others are available as single zip (https://github.com/Jorisbo/Mkgmap-Mapnik-Style-Garmin) . It does however has nothing to do with http://garmin.openstreetmap.nl/ . This website is non-functional for more then a year i guess.

Kind regards
Joris

@RealVegOs
Copy link
Author

This one: https://github.com/Jorisbo/Mkgmap-Mapnik-Style-Garmin/blob/master/20220316%20Style%20-%20Jbm%20-%20Version%205.3.1e..zip ? OK,I'll check it. It was a bit hidden and truncated. I was always looking for a folder. Thanks and regards, BrunO

@RealVegOs
Copy link
Author

Starts with:
WARNUNG (global): Option style-options doesn't specify 'jbmoptionfixme' (for mkgmap:option:jbmoptionfixme)
WARNUNG (global): Option style-options doesn't specify 'jbmoptionhiking' (for mkgmap:option:jbmoptionhiking)
WARNUNG (global): Option style-options doesn't specify 'jbmoptionpersonal' (for mkgmap:option:jbmoptionpersonal)
WARNUNG (global): Option style-options doesn't specify 'jbmoptionbicycle' (for mkgmap:option:jbmoptionbicycle)
WARNUNG (global): Option style-options doesn't specify 'jbmoptiondebug' (for mkgmap:option:jbmoptiondebug)

but compilation is running. I will test the map when ready.

@RealVegOs
Copy link
Author

Looks useable, but not the same like online OSM mapnik style. Strangely, some areas are blue, e.g. cemetaries, wastelands, fields, but not all fields. Paths and trails are clearly to see. That's good for my usage (photo tours).

@Jorisbo
Copy link
Owner

Jorisbo commented Apr 1, 2022

Hallo Bruno

  • If you can build a map: you are almost there
  • You can ignore the warnings. OR if you want to avoid them..., in the arg-file specify : style-option=jbmoptiondebug=info;jbmoptionpersonal=false;jbmoptionfixme=false;jbmoptionbicycle=false;jbmoptionhiking=false
  • The blue cemetry is (probably) because you did not apply the TYP file correctly (jbm.typ) this can be done by A) compile it with mkgmap, or B) use "javawa GMTK" tool to change it afterwords ( https://www.javawa.nl/downloads/software/GMTK_Setup.exe )
  • I uploaded a recent example of possible .arg-file and my build.cmd file which contains all the execution commands to generate a TYP, map and cleanup of temporary files. Copy / paste what you need. , success Joris

@RealVegOs
Copy link
Author

I'm an old man with Linux... I changed the name of the style folder from "Style-Jbm" to "Jbm". Does this some shit like blue cemetries?

@Jorisbo
Copy link
Owner

Jorisbo commented Apr 1, 2022

Blue cemetry is (warscheinlich) because of the TYP file not the STYLE file. So have a look at creating the correct TYP-file with mkgmap using the the same map-id you used when building the map. The style-file is used to create roads and area's. The TYP-file is used to give this stuf a color.

@RealVegOs
Copy link
Author

Alas I do not know, how to create a .typ file. I changed nothing inside your "Style - Jbm" Folder. There is a .typ file. Sorry for annoying you. War Sächselüten scho?

@RealVegOs
Copy link
Author

I forgot: check-styles in mkgmap.args yielded a warning "routable type 0x2e is used for non-routable line with level 0. This may break routing. Style file lines, line 91".

@RealVegOs
Copy link
Author

RealVegOs commented Apr 2, 2022

I tried to set the FID of jbm.txt in mkmap.args but manmade areas e.g. cemeteries still are blue. That's the Blues man!

Edit: 🍻
Finally, I got it! I simply did not include osm.typ as argument for mkgmap. Now cemeteries are grey as in jbm.txt - Nevertheless the whole compiling and preparation is still a book with sieben Siegel for me. How to create .typ files? Are they generated/compiled from .txt files? But I'm happy now, not to depend on map downloads any longer. Thanks for your help and for creating this style stuff. 🍻

@Jorisbo
Copy link
Owner

Jorisbo commented Apr 4, 2022

Hallo Bruno
Great that it works. If the map is compiled correctly, with the correct TYP-file, the layout in mapsource/basecamp or on your gps device should look more or less the same as what you see on www.openstreetmap.org : Same objects rendered, same symbols and same colors.

It indeed is a hassle to compile these maps because of the 250 options. Not easy to know what they are meant for and which different software to be executed sequentially to avoid all the gaps.

You can also write your own (linux variant) of my windows "build.cmd" file. It will then do all the steps in one flow.
By the way: the sequence and software used in the build.cmd-file is just a way it will work "always", not the fasted way nor the only way.

There are full service websites who could also do this for you
(in the past (but not working anymore !): http://garmin.openstreetmap.nl

Today's working examples
https://www.freizeitkarte-osm.de
https://extract.bbbike.org
https://www.openfietsmap.nl/

Kind,
regards Joris

@mikedefieslife
Copy link

Not an issue as such, but is there an instructional file on how to use this with Basecamp (Mac), and OSM maps from https://extract.bbbike.org/, https://www.freizeitkarte-osm.de/ etc..

@Jorisbo
Copy link
Owner

Jorisbo commented Aug 26, 2024

Hi Mike, the style files are configuration files only to be used together with the (https://www.mkgmap.org.uk) software to create basecamp maps. Bbbike.org and freizeitkarte are already pre-compiled maps with their own styles and look and feel. You can create your own map with my look and feel by using this mkgmap software. For newbies not very simple (I remember my own struggles). I don't have experience with Mac and only use Windows. In short: You install Java software on your Windows machine and you download the mkgmap sofware. To create a map, you download an openstreetmap area from the geofabrik website. Then run a cmd line with a reference to my 'style-file.zip' and at the end you will find a Basecamp map installed on your laptop and/or GPS which looks like the screenshots i provided. But since you need to specifyc exactly al the correct paths to all the files and software, it can be a hassle to get it to work. (Too much things you can do wrong without knowing what you did wrong). You can find various scripts on the internet. For example: https://www.openfietsmap.nl/tips-tricks/procedure . If you like to dive into it, let me know and i can help but you need some basic nerdy skills :-) I also have an excel sheet with visual basic macro which creates the map if you have mkgmap and java installed but still this needs basics skills. Kind regards, Joris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants