for %%i in (*.mp) do java.exe -Xmx1280M -enableassertions -jar “c:\program files\mkgmap\mkgmap.jar” --route --net --description=“SUT-2D” --mapname=12345678 %%i
but, as it stands, this code will only overwrite 12345678.img with every file in the set of *.mp. Is there a way to get mkgmap to access the 8 digit MapID in the MP file, or to get Windows to concatenate and increment the IMG name?
I can see how that works for creating the 6324000.TDB and IMG, but how does that generate multiple map names? It looks to me like that would overwrite 12345678.IMG with every MP in *.MP. In my case 20 calls end with a single 12345678.IMG, the last compiled file.
Thanks, triggerfish. It helps a lot, although there is more Windows Command Language here than I ever hoped to learn. If I read this right, your OSM filename is in a format like 12345678.OSM where 5678 is parsed to the grid and 12345678 is parsed to the mapname. Is the _land parameter Nederland?
Yes, that is correct. I used the filename’s first four digits to define a country then two sets “coordinates” on a map “chess board”. So i got several files which together defined an area. The only parameter you would probably need would be the _kaart one, which reflects the name part of the filename.