Problems with options

Hello, With version 1667, I am not able to use my custom style file. If I launch the command java -enableassertions -Xmx1024M mkgmap.jar --style-file=./styles (or ./styles.zip) --list-style the result is the list of the styles contained in my ./styles directory or my archive styles.zip. if I define these options in a text file called with -c argument, it does not work despite dozens other options are well read (mapname, family...). I tested my custom style by replacing default style and rebuilding mkgmap to test the syntax and it works fine... I also tested --style-file and --style directly in command line and it works fine. The problem seems to occur when style-file and style options are used in a text file. The route option also does not work in a text file but --route works fine in command line. I also noted lots of "GRAVE" errors for RoadNetwork linked to zero length arc at level 17 (I thought routing worked only at the finest LOD of the map (24 in my case). Best regards, David PS : I made all my tests with the ireland.osm file from geofabrik.de

On 08/01/2010 10:19 PM, David wrote:
With version 1667, I am not able to use my custom style file. If I launch the command java -enableassertions -Xmx1024M mkgmap.jar --style-file=./styles (or ./styles.zip) --list-style the result is the list of the styles contained in my ./styles directory or my archive styles.zip. if I define these options in a text file called with -c argument, it does not work despite dozens other options are well read
I could not reproduce this at my first try. It is mostly the same code that reads the options from the command line and from a file so that when there is a difference it is usually some combination of events that leads to it. When you say version 1667 has the problem, do you mean that an earlier version did not, or that you have just noticed the problem.
I also noted lots of "GRAVE" errors for RoadNetwork linked to zero length arc at level 17 (I thought routing worked only at the finest LOD of the map (24 in my case).
It is true that routing is based on the most detailed level of the map. The GRAVE errors really shouldn't be printed as they are not really errors - there is nothing that you can or should do about them. ..Steve

David wrote:
styles.zip. if I define these options in a text file called with -c
Hi David, I did not test it but sometimes those strange errors can happen when you use a text file with DOS line endings. I do not know whether it can help in your case but is worth to try. So try to convert the file to Unix line endings and try again. Best regards from Dani
participants (3)
-
Daniela Duerbeck
-
David
-
Steve Ratcliffe