logo separator

[mkgmap-dev] question about output-dir and indexing

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Oct 5 19:29:58 BST 2020

Hi Karl,

the option
--read-config=se/splitted/template.args
tells mkgmap to read further args from se/splitted/template.args .
When you look into that file you'll notice that it contains several lines with input-file=...
So, mkgmap compiles a lot of tiles with the default options before it looks at the options following this first one. Later, it compiles the same tiles again with your options.
Try

java -Xmx4G -jar ../mkgmap/mkgmap-r4585/mkgmap.jar
--max-jobs
--family-name="NORDIC"
--country-name="Sweden"
--country-abbr="SWE"
--family-id=7700
--latin1
--net --route --index --split-name-index
--output-dir=se/tiles/
--read-config=se/splitted/template.args
--description="Sweden routable."
--gmapsupp

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von 7700 <7770 at foskan.eu>
Gesendet: Montag, 5. Oktober 2020 19:32
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: [mkgmap-dev] question about output-dir and indexing

Hi.
I am very new to making maps so therefor in case i am asking something obvious
it is because i don't know better yet.

I am trying to generate a map for a country (trying sweden) and observe a
strange thing with --output-dir for mkgmap (r4585).
Files are written to other directories than to the --output-dir


Starting at a base directory i have created this structure:

├── gmapsupp
└── se
    ├── splitted
    └── tiles

The idea is that for sweden i will store splitted pbf files in a separate
directory and tiles in a separate.

at first i download data to the ./se/ directory:
wget https://download.geofabrik.de/europe/sweden-latest.osm.pbf

then split the data, adding the --output-dir=se/splitted/
this works fine.

now i want to generate the *.img tiles from the splitted files. Doing this from
the base directory.

java -jar ../mkgmap/mkgmap-r4585/mkgmap.jar
--read-config=se/splitted/template.args
--remove-short-arcs
--family-name="NORDIC"
--country-name="Sweden"
--country-abbr="SWE"
--description="Sweden routable."
--mapname=77700001
--family-id=770
--latin1
--net --route --index --split-name-index
--output-dir=se/tiles/
se/splitted/*.osm.pbf



When i run this from the base directory
numbered *.img files and ovm_*.img files are first written to the base directory
and then last to the target directory.
After the program finishes there are files both in base directory from where i
executed the program, as well as the directory given in output-dir.
The files in the output-dir directory are larger than the ones in the base
directory. Is this an error or should i take care of both sets of files?



Trying to use --index to create a searchable index or street names, for this,
do i need to add a separate file/style to make it work?
if yes, are there examples which you can point to?


Regards
Karl



_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list