You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2012-06-23 10:48:56

pamyupamyu
Member
Registered: 2012-06-23
Posts: 4

How to create "Route only" maps?

Hi, I would like to create routable maps with no poi tags because OSM POI is sometimes noisy.

I tryed --delete-tags-file opition as following,
name=*
name:en=*
name:ja=*
name:ja_kana=*
name:ja_rm=*

and set "points" of style file to blank,
but the result is error.

Someone teach me right way.
Thanks,

Offline

#2 2012-06-23 10:51:30

pamyupamyu
Member
Registered: 2012-06-23
Posts: 4

Re: How to create "Route only" maps?

I'm using mkgmap.

Offline

#3 2012-06-23 16:12:05

kukuk
Member
Registered: 2011-09-13
Posts: 225
Website

Re: How to create "Route only" maps?

Which POIs you get or not with mkgmap depends on the style. Use an empty points file, then you will not get any POI.

Offline

#4 2012-06-24 06:32:03

pamyupamyu
Member
Registered: 2012-06-23
Posts: 4

Re: How to create "Route only" maps?

kukuk wrote:

Use an empty points file

I already use empty points file.
So I checked args again, then I found that "--index" option with empty "points" file make error.

Finally I could make "Route only" maps.

1. using empty points file of style (without --index option)

but still remain road name, so set 2.
2. --delete-tags-file

name=*
name:en=*
name:ja=*
name:ja_kana=*
name:ja_rm=*

Thanks,

Offline

#5 2012-06-24 06:49:38

kukuk
Member
Registered: 2011-09-13
Posts: 225
Website

Re: How to create "Route only" maps?

pamyupamyu wrote:
kukuk wrote:

Use an empty points file

I already use empty points file.
So I checked args again, then I found that "--index" option with empty "points" file make error.

I use that for different maps without problems. What is the error message?

Offline

#6 2012-06-24 07:20:40

pamyupamyu
Member
Registered: 2012-06-23
Posts: 4

Re: How to create "Route only" maps?

kukuk wrote:

What is the error message?

version: mkgmap-r2281

error message

C:\workspace\OpenStreetMap\test\output>java -Xmx1300M -jar "C:\workspace\OpenStreetMap\mkgmap\mkgmap.jar" -c japan.args
Time started: Sun Jun 24 15:06:14 JST 2012
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(Unknown Source)
        at uk.me.parabola.imgfmt.app.mdr.Mdr29.preWriteImpl(Mdr29.java:62)
        at uk.me.parabola.imgfmt.app.mdr.MdrSection.preWrite(MdrSection.java:138)
        at uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection(MDRFile.java:379)
        at uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:353)

        at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:247)
        at uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice(MdrBuilder.java:382)
        at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBuilder.java:116)
        at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:440)
        at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)
        at uk.me.parabola.mkgmap.main.Main.main(Main.java:114)

tmp.args

#mapname:80000001
#code-page:932
#lower-case
country-name:JAPAN
region-name:JAPAN
region-abbr:JP1
country-abbr:JP
#overview-mapname:80000000
family-id:42
family-name:"Japan OSM Family"
series-name:"Japan OSM Series"
description:"Japan OSM"
route
#name-tag-list:name:ja_rm,name:en,int_name,name
drive-on-left
remove-short-arcs
generate-sea:extend-sea-sectors,close-gaps=6000
style-file:..\styles\routeonly
gmapsupp
index
location-autofill=bounds
transparent
delete-tags-file:..\styles\routeonly\deletetags

bat file

set USE_CACHE=0

set PATH=%PATH%;C:\Program Files (x86)\Java\jre6\bin
set SPLITTER=java -Xmx1300M -jar "C:\workspace\OpenStreetMap\splitter\splitter.jar"
set MKGMAP=java -Xmx1300M -jar "C:\workspace\OpenStreetMap\mkgmap\mkgmap.jar"
set OSMCONVERT="C:\workspace\OpenStreetMap\osmconvert\osmconvert.exe"
set OSMFILTER="C:\workspace\OpenStreetMap\osmfilter\osmfilter.exe"
set MAP_FILE_ORG=C:\workspace\OpenStreetMap\test\map.osm

mkdir output
cd output

mkdir bounds

del *.tmp
del *.img

if not "%USE_CACHE%" == "1" (
    rem download http://download.geofabrik.de/osm/asia/japan.osm.pbf
    %OSMCONVERT% %MAP_FILE_ORG% --out-o5m >japan.o5m
    %OSMFILTER% japan.o5m --keep-nodes= --keep-ways-relations="boundary=administrative =postal_code postal_code=" >japan-boundaries.osm
    %MKGMAP% --createboundsfile=japan-boundaries.osm
    %SPLITTER% --description="OSM Japan" --max-nodes=1000000 %MAP_FILE_ORG%
)

copy /b ..\tmp.args+template.args japan.args /y

%MKGMAP% -c japan.args

pause

Offline

#7 2012-06-26 10:22:41

AcousticNewt
Member
Registered: 2010-10-14
Posts: 5

Re: How to create "Route only" maps?

pamyupamyu wrote:
kukuk wrote:

What is the error message?

version: mkgmap-r2281

error message

C:\workspace\OpenStreetMap\test\output>java -Xmx1300M -jar "C:\workspace\OpenStreetMap\mkgmap\mkgmap.jar" -c japan.args
Time started: Sun Jun 24 15:06:14 JST 2012
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(Unknown Source)
        at uk.me.parabola.imgfmt.app.mdr.Mdr29.preWriteImpl(Mdr29.java:62)
        at uk.me.parabola.imgfmt.app.mdr.MdrSection.preWrite(MdrSection.java:138)

This particular problem is fixed in the latest version (r2309+)

If it does happen though it means that there are no countries in the index
and so the index would not be that useful anyway. As you have no points file
that is to be expected.

Offline

Board footer

Powered by FluxBB