<div dir="ltr"><div>This is a two-part question.</div><div>Firstly:<br></div><div>I have been trying to change my compilation method to use a config file but am having problems. During my experimentations I managed to insert the style file directive "--style-file=directory|zip-filename|url" _after_ the filespec for the OSM data file. My map compiled without errors but was not using my styles. I was very confused because it had always worked before. It took me 20 or 30 minutes to discover that I had accidentally "misplaced" my style file parameter in the mkgmp parameter list. Once I moved it in front of the filespecs for my OSM data file and custom TYP file, all was well again.</div><div><br></div><div>I am assuming that the "options" file included with every mkgmap download is the primary help file for running mkgmap. So I guess I'm asking if someone would please add a sentence to the options file where the use _and placement_ of the style file parameter is explained more completely. The way it is now, one cannot know that the placement of that parameter is important. Apparently,  the placement of ALL parameters must come before any filespecs in the mkgmap invocation but that important fact isn't obvious (at least to me) from reading the options help file.</div><div><br></div><div>A line saying "the style file parameter must appear before any references to a file specification for input data or custom TYP file." inserted just after the "=== Style options ===" section divider would be very helpful</div><div><br></div><div>Or perhaps a line at the very top of the options file saying "Note: all options specified herein must appear on the mkgmap invocation before any reference to an OSM input file or a custom TYP file."<br></div><div><br></div><div>*******************************************</div><div>Secondly:<br></div><div><br></div><div>The problem I'm having with using a configuration file might be related to file specifications, but I'm not sure. My first try used the filespecs in quotes as they appear in my parm specification. That didn't work. When I compile a map using the scenario below, mkgmap produces an error saying "SEVERE (Main): name: file name doesn't exist" but does not supply a filename. Not very helpful.<br></div><div><br></div><div>Here is my mkgmap invocation string and the configuration file I'm trying to employ:</div><div><br></div><div>java -Xmx4000m -jar mkgmap.jar  -c DJS.cfg --family-id=18028 --name-tag-list=name:en,loc_name:en,int_name,alt_name:en,short_name:en, name --description="Lanna" --country-name=THAILAND --country-abbr=THA "C:\Users\alask\Downloads\Maps\Lanna.osm" "C:\Users\alask\Dropbox\Mapping\24983djs.TYP"</div><div><br></div><div>And the config file: DJS.cfg follows:<br></div><div><br></div><div>gmapsupp<br>route<br>index<br>bounds=C:\Users\alask\Downloads\Maps\bounds.zip<br>precomp-sea=C:\Users\alask\Downloads\Maps\sea.zip<br>generate-sea=land-tag=natural=background<br>location-autofill=is_in,nearest<br>housenumbers<br>max-jobs<br>drive-on=detect<br>add-pois-to-areas<br>link-pois-to-ways<br>process-destination<br>process-exits<br>code-page=1252<br>check-routing-island-len=700<br>remove-ovm-work-files<br>#road-name-config=mkgmap-rel/examples/roadNameConfig.txt<br>split-name-index<br>make-opposite-cycleways<br>order-by-decreasing-area<br>style-file=C:\Users\alask\Dropbox\Mapping\DJS_styles</div><div><br></div><div>I'm sure you experts will easily see what I'm doing wrong. Thanks in advance.</div><div><br></div><div>Cheers,</div><div><br></div><div>Dave<br></div><br><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dave Swarthout<br>Homer, Alaska<br>Chiang Mai, Thailand<br>Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a></div></div></div></div>