Hi Gerd
Here is revised patch including sample.cfg. The README is distributed;
build.xml already copies it.
Ticker
On Wed, 2019-11-13 at 17:50 +0000, Gerd Petermann wrote:
> Hi Ticker,
>
> I use "svn add" to add a new file. A following svn diff produces the
> patch with the file.
> I think the README is not distributed, so you have to change
> build.xml as well.
>
> If you use svn patch with my patch the file is "automagically" svn
> -aded
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <[email protected]> im Auftrag
> von Ticker Berkin <[email protected]>
> Gesendet: Mittwoch, 13. November 2019 18:43
> An: Development list for mkgmap
> Betreff: Re: [mkgmap-dev] Sample basic mkgmap config file
>
> Hi Gerd
>
> I've tweaked the file a bit and put a hint to it in the README in the
> root directory of the distribution; this file is very out-of-date but
> I
> didn't want to start re-writing it.
>
> Attached is the updated patch and resources/sample.cfg (which I
> couldn't work out how to get into the patch because it's a new file)
>
> I don't think we can solve all a new users build problems, but the
> idea
> of this was just to start the user off with a good set of options and
> how they can be specified, along with the splitter generated
> template.args, to mkgmap.
>
> Ticker
>
> On Wed, 2019-11-13 at 11:12 +0000, Gerd Petermann wrote:
> > Hi Ticker,
> >
> > I don't think that it will be of much help when we distribute a
> > sample without any hint regarding the usage.
> >
> > The attached patch shows how to change build.xml so that it copies
> > a
> > sample.cfg to examples directory. I think we need at least a
> > README.html or HOWTO.html
> > that explains how to use it and I have no idea where to start with
> > this.
> >
> > Here is a brief description how I create a map for my bicycle
> > tours:
> > 1) Extract attached zip file to produce a directory map containing
> > makemap.cmd and mkgmaps.args
> > 2) Create a gpx file with a router like brouter
> > http://brouter.de/brouter-web
> > 3) Load the gpx file into JOSM and draw a polygon around it, store
> > it
> > as map.poly in the map directory
> > 4) Download osm.pbf from geofabrik that covers the map.poly
> > (typically europe-lastest.osm.pbf)
> > 5) Modify the first rows in script makemap.cmd so that the wanted
> > osm
> > input file is used and map name is set
> > 6) Execute the script (don't try it, it will only work on my PC)
> >
> > If you look at the script you will find that it requires some tools
> > and input files in exactly the right places
> > and there is no code to react on errors, so it may help some people
> > but probably it will only be confusing for a newbie, esp.
> > one who uses Linux.
> >
> > The program map-composer (1) tries to solve this problem with a
> > dialog, but it is only available in German.
> >
> > (1) http://composer.waldpfa.de/
> >
> > Gerd
Index: README
===================================================================
--- README (revision 4367)
+++ README (working copy)
@@ -13,7 +13,7 @@
Using
=====
-This program requires Java 1.6 or above to run.
+This program requires Java 1.8 or above to run.
Producing a map is simple. Save OpenStreetMap data from JOSM
or by any other method to a file and copy it to the mkgmap
@@ -60,6 +60,8 @@
to obtain an up to date and complete listing of options.
+Also consider examples/sample.cfg as a starting point for your options package
+
Processing more than one file at a time
---------------------------------------
Index: build.xml
===================================================================
--- build.xml (revision 4367)
+++ build.xml (working copy)
@@ -401,6 +401,7 @@
<copy todir="${dist}/examples">
<fileset dir="resources">
<include name="roadNameConfig.txt"/>
+ <include name="sample.cfg"/>
<include name="known-hgt.txt"/>
<include name="installer/**"/>
<include name="styles/default/**"/>
Index: resources/sample.cfg
===================================================================
--- resources/sample.cfg (revision 0)
+++ resources/sample.cfg (working copy)
@@ -0,0 +1,39 @@
+# Sample mkgmap option file to create a map for a GARMIN GPS and compatible PC Programs
+#
+# The options given here are a reasonable set for generating a routable map, but you
+# will probably need to copy this file into your working environment and adapt it by
+# fixing paths, adjusting options etc.
+#
+# Generally, where the default value for an option as acceptable, it isn't specified here.
+# Please see the standard help information for details of what the options do.
+#
+# Typical command line invocation, after using the splitter to generate a set of tiles:
+#> java -jar mkgmap-rel/mkgmap.jar -c mkgmap-rel/examples/sample.cfg -c template.args mkgmap-rel/examples/typ-files/mkgmap.txt
+#
+gmapsupp
+gmapi
+route
+index
+bounds=bounds.zip
+precomp-sea=sea.zip
+location-autofill=is_in,nearest
+housenumbers
+max-jobs
+drive-on=detect
+add-pois-to-areas
+link-pois-to-ways
+process-destination
+process-exits
+code-page=1252
+check-routing-island-len=700
+remove-ovm-work-files
+#
+# Other common options you may wish to consider:
+#
+#style-file=mkgmap-rel/examples/styles/default
+# The above is the default style, change and enable this to use your own style
+#road-name-config=mkgmap-rel/examples/roadNameConfig.txt
+#split-name-index
+#make-opposite-cycleways
+#order-by-decreasing-area
+#name-tag-list=name:en,int_name,name,place_name,loc_name
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev