logo separator

[mkgmap-dev] maps mixed

From frmas frmas at free.fr on Mon Aug 17 18:24:42 BST 2009

Felix Hartmann a écrit :

Hello,

> Well every *.img needs it's own map-id, it's own tdb and it's own
> overview image (this one only for mapsource).... If they all display
> correctly in Mapsource, transferring several should be no problem...

I run Linux and do not use mapsource.
These are the parameters I use with splitter and mkgmap :

Example for Luxembourg :

elif [[ $2 = "luxembourg" ]] || [[ $2 = "Luxembourg" ]] || [[ $2 =
"LUXEMBOURG" ]] ; then

  # On definit les variables dont on a besoin :
  CARTE_GEOFABRIK="luxembourg.osm.bz2"
  PAYS="Luxembourg"
  COUNTRY_NAME="LUXEMBOURG"
  COUNTRY_ABBR="L"
  INDEX_CARTE="06"

../. lots of stuff deleted

nom_carte_de_sortie=$PAYS".img"
PREFIX_CARTE="6324"
DESCRIPTION="$PAYS. Carte du 17 aout 2009"
FAMILYNAME="Carte OSM $PAYS"
SERIESNAME="OSM-$PAYS-s"

java -Xmx896m -jar /home/pers/.josm/splitter.jar --max-nodes=1000000
--mapid=$PREFIX_CARTE$INDEX_CARTE"00" $CARTESDIR/$CARTE_GEOFABRIK

  OPT_GMAPSUPP="                           \
  -Xmx896M                                 \
  -jar $FILEDIR/mkgmap.jar                 \
  --country-name=$COUNTRY_NAME             \
  --country-abbr=$COUNTRY_ABBR             \
  --family-id=148                          \
  --gmapsupp                               \
  --ignore-maxspeeds                       \
  --ignore-turn-restrictions               \
  --latin1                                 \
  --location-autofill=1                    \
  --lower-case                             \
  --preserve-element-order                 \
  --product-id=$INDEX_CARTE                \
  --remove-short-arcs                      \
  --road-name-pois                         \
  --route                                  \
  --style-file=$FILEDIR/styles/arvernes    \
  --tdbfile                                \
  --transparent                            \
  -c $CARTESDIR/template.args              \
  "

  java $OPT_GMAPSUPP --description="$DESCRIPTION"
--family-name="$FAMILYNAME" --series-name="$SERIESNAME"

Once the gmapsupp.img created I rename it to the country name:
mv -f gmapsupp.img $nom_carte_de_sortie

As you can see each country I download has its own "INDEX_CARTE", so the
mapid is different for each map.
But maybe there are many mistakes the way I proceed.?!

Francois

-- 



More information about the mkgmap-dev mailing list