[mkgmap-dev] New mkgmap styles
From Clinton Gladstone clinton.gladstone at googlemail.com on Fri May 7 18:28:28 BST 2010
On Fri, May 7, 2010 at 7:13 PM, Marko Mäkelä <marko.makela at iki.fi> wrote: > > I believe that these layer style files would have to include a TYP file. > I don't have a clear idea how to package the TYP files. Can mkgmap look > for TYP files inside a style directory? Should it? The problem with the TYP files is that the family and product IDs have to match that of the map being generated. I have the following workflow in place: 1. My "generic" TYP file is in a directory where the style directories also are. 2. My map building script copies the TYP file to the directory where the current map is to be generated. In the copy process, the TYP file is also renamed to a unique name matching the current map . (If I recall, the TYP file name must also be unique if combining with several different maps.) 3. A Perl script then adjusts the TYP file family and product IDs to match that of the map being generated. 4. The adjusted TYP file is then passed as a parameter to mkgmap as the map is generated. Therefore, I would suggest that you think about distributing your TYP file, potentially with the style files, but note that users will have to adjust the name and IDs when they generate their own maps. (And by the way, thanks for taking the initiative on this. Last year I created a test public transportation layer, but have not had time to document or distribute what I did.) Cheers.
- Previous message: [mkgmap-dev] New mkgmap styles
- Next message: [mkgmap-dev] New mkgmap styles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list