where do I have to use the style files

Hello, Trying to create a good cyclemap, my attempts don't give me the result expected ;-) My question is related to the style files: Where do I have to use the parameter "--style-file=xxxxxx". I use it two times when I create the gmapsupp.zip file, but maybe one is useless. First time, when I compile all the xxx.osm.gz file produced by splitter. Second time when I assemble all .img file produced to create the gmapsupp.img file. Am I right ? At the beginning of the run I have those parameters : # Options de compilation de mkgmap OPT_M_COMP=" \ -Xmx768M \ -jar mkgmap.jar \ --add-pois-to-areas \ --ignore-maxspeeds \ --ignore-osm-bounds \ --ignore-turn-restrictions \ --latin1 \ --location-autofill=1 \ --remove-short-arcs \ --road-name-pois \ --route \ --transparent \ --style-file=$FILEDIR/styles/cyclemap \ --family-id=148 \ " cd $FILEDIR # On fait les cartes .img pour la France : if [ -f $CARTESDIR/$carte_a01 ]; then echo " - On fait la carte a partir du fichier $carte_a01" >> $FILEDIR/log.txt java $OPT_M_COMP --mapname="09030001" $CARTESDIR/$carte_a01 fi etc... then further in my batch file : CARTES="09030102.img \ 09030001.img 09030002.img 09030003.img 09030004.img 09030005.img \ 09030006.img 09030007.img 09030008.img 09030009.img 09030010.img \ 09030011.img 09030012.img 09030013.img 09030014.img 09030015.img \ 09030016.img \ 09030199.img \ 09030501.img 09030502.img 09030503.img 09030504.img 09030505.img \ 09030506.img 09030507.img \ CYCLEMAP.TYP" # Options de compilation pour la creation de la gmapsupp.img OPT_GMAPSUPP=" \ -Xmx768M \ -jar mkgmap.jar \ --country-name=France \ --country-abbr=FR \ --gmapsupp \ --family-id=148 \ --style-file=$FILEDIR/styles/cyclemap \ " java $OPT_GMAPSUPP --description="Ma carte VTT" --family-name="v2.00 au 26 juillet 2009" $CARTES Thank you. Francois --

Hi On 27/07/09 14:09, frmas wrote:
My question is related to the style files: Where do I have to use the parameter "--style-file=xxxxxx". I use it two times when I create the gmapsupp.zip file, but maybe one is useless.
The style file is only used to convert from .osm to .img. So if you have no .osm files on the command line, then the --style-file parameter is not needed. In your particular case, there is no need for the --style-file on the second command with the --gmapsupp as all the files are .img file. ..Steve

Steve Ratcliffe a écrit : Hello,
My question is related to the style files: Where do I have to use the parameter "--style-file=xxxxxx". I use it two times when I create the gmapsupp.zip file, but maybe one is useless.
The style file is only used to convert from .osm to .img. So if you have no .osm files on the command line, then the --style-file parameter is not needed.
In your particular case, there is no need for the --style-file on the second command with the --gmapsupp as all the files are .img file.
OK, thank you. But of course I have to add the file CYCLEMAP.TYP to the list of .img files I want to gather to create the gmapsupp file? Is there a place somewhere where I could download a .TYP file and the appropriate style files to produce a good cyclemap ? Francois --
participants (2)
-
frmas
-
Steve Ratcliffe