logo separator

[mkgmap-dev] Basecamp and NET/NOD changes

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Wed Nov 20 15:31:49 GMT 2019

Hi Gerd

I'm getting routing problems with Basecamp when using routing island
removal. Building with:

java -jar ../mkgmap.trunk/mkgmap.jar -c ticker.cfg --check-routing
-island-len=700 --family-name=trRIL700 -c template.args ticker.txt

a high proportion of routes fail, ie it just generates a straight line.
This is using Motorcar, Shortest distance, no avoids.
My Garmin device generates routes correctly.

Building with:

java -jar ../mkgmap.trunk/mkgmap.jar -c ticker.cfg --check-routing
-island-len=-1 --family-name=trRIL-1 -c template.args ticker.txt

routes are calculated that follow roads.

mkgmap.trunk is my build of the latest sources (r4373), attached are
the various small files, with img data unchanged from before:

http://files.mkgmap.org.uk/download/454/hants.pbf.zip

Some examples that work:
"SO22 6AN" to "SO23 8DS"
"SO22 6AN" to "SO15 7NQ"

Some examples that fail in Basecamp:
"SO22 6AN" to "SO23 8RJ"
"SO22 6AN" to "SO15 1AG"
"SO22 6AN" to "SO15 7NG"
"SO15 7NG" to "SO15 7NQ"

I also notice that display:test.check.NetCheck and NodCheck run through
on --c-r-i-l=700 but give quite a few errors, whereas, with --c-r-i-l=
-1, NetCheck doesn't find any errors but NodCheck crashes after giving
the message:
--------- 74210002.img --------------------
Could not find node for road 48815 nod2=173db

Exception in thread "main" java.lang.NullPointerException
        at test.check.NodCheck.checkNod2(NodCheck.java:91)
        at test.check.NodCheck.print(NodCheck.java:63)
        at test.display.CommonDisplay.display(CommonDisplay.java:204)
        at test.check.CommonCheck.runMain(CommonCheck.java:145)
        at test.check.NodCheck.main(NodCheck.java:1004)

I wonder if you can help - I was trying to use Basecamp to narrow down
another routing problem I was having with my Garmin device.

Thanks
Ticker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ticker.sh
Type: application/x-shellscript
Size: 351 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20191120/fc2abbb9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ticker.zip
Type: application/zip
Size: 42951 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20191120/fc2abbb9/attachment-0001.zip>
-------------- next part --------------
add-boundary-nodes-at-admin-boundaries=0
add-pois-to-areas
area-name=berkin
bounds=../bounds.zip
code-page=1252
drive-on=detect,left
family-id=7421
family-name=mapHants
generate-sea=multipolygon,extend-sea-sectors,close-gaps=350
gmapi
gmapsupp
index
link-pois-to-ways
location-autofill=is_in,nearest
max-jobs
name-tag-list=name:en,int_name,name,place_name,loc_name
no-housenumbers
order-by-decreasing-area
overview-mapnumber=74210000
preserve-element-order
process-destination
process-exits
route
series-name=ticker
style-file=ticker
x-mapset-name=Jaguar
-------------- next part --------------
[_id]
CodePage=1252
[end]
;
[_drawOrder]
; nothing shows, even with: Type=0x00,2
Type=0x01,2
Type=0x02,2
Type=0x03,2
Type=0x04,2
Type=0x05,2
Type=0x06,2
Type=0x07,2
Type=0x08,2
Type=0x09,2
Type=0x0a,2
Type=0x0b,2
Type=0x0c,2
Type=0x0d,2
Type=0x0e,2
Type=0x0f,2
Type=0x10,2
Type=0x11,2
Type=0x12,2
Type=0x13,2
Type=0x14,2
Type=0x15,2
Type=0x16,2
Type=0x17,2
Type=0x18,2
Type=0x19,2
Type=0x1a,2
Type=0x1b,2
Type=0x1c,2
Type=0x1d,2
Type=0x1e,2
Type=0x1f,2
Type=0x20,2
Type=0x21,2
Type=0x22,2
Type=0x23,2
Type=0x24,2
Type=0x25,2
Type=0x26,2
Type=0x27,2
Type=0x28,2
Type=0x29,2
Type=0x2a,2
Type=0x2b,2
Type=0x2c,2
Type=0x2d,2
Type=0x2e,2
Type=0x2f,2
Type=0x30,2
Type=0x31,2
Type=0x32,2
Type=0x33,2
Type=0x34,2
Type=0x35,2
Type=0x36,2
Type=0x37,2
Type=0x38,2
Type=0x39,2
Type=0x3a,2
Type=0x3b,2
Type=0x3c,2
Type=0x3d,2
Type=0x3e,2
Type=0x3f,2
Type=0x40,2
Type=0x41,2
Type=0x42,2
Type=0x43,2
Type=0x44,2
Type=0x45,2
Type=0x46,2
Type=0x47,2
Type=0x48,2
Type=0x49,2
Type=0x4a,2
Type=0x4b,2
Type=0x4c,2
Type=0x4d,2
Type=0x4e,2
Type=0x4f,2
Type=0x50,2
Type=0x51,2
Type=0x52,2
Type=0x53,2
Type=0x54,2
Type=0x55,2
Type=0x56,2
Type=0x57,2
Type=0x58,2
Type=0x59,2
Type=0x5a,2
Type=0x5b,2
Type=0x5c,2
Type=0x5d,2
Type=0x5e,2
Type=0x5f,2
[end]
;
;----- POLYGON SECTION ----
;
[_polygon]
Type=0x02
String=Suburb
FontStyle=NormalFont
Xpm="0 0 1 0"
    "a c #FFE3E3"
[end]
;
[_polygon]
Type=0x03
String=Village
FontStyle=NormalFont
Xpm="0 0 1 0"
    "a c #FFE3E3"
[end]
;
[_polygon]
Type=0x08
; String=Shopping Center
FontStyle=SmallFont
Xpm="0 0 1 0"
    "a c #FF9966"
[end]
;
[_polygon]
Type=0x0f
String=Commercial
FontStyle=NormalFont
Xpm="0 0 1 0"
    "a c #FFE3E3"
[end]
;
[_polygon]
Type=0x10
String=Residential
FontStyle=NormalFont
Xpm="0 0 1 0"
    "a c #FFE3E3"
[end]
;
[_polygon]
Type=0x11
String=Danger Area
FontStyle=NormalFont
Xpm="32 32 2 1"
    ". c none"
    "/ c #FF0000"
    "////////........////////........"
    "///////........////////......../"
    "//////........////////........//"
    "/////........////////........///"
    "////........////////........////"
    "///........////////......../////"
    "//........////////........//////"
    "/........////////........///////"
    "........////////........////////"
    ".......////////........////////."
    "......////////........////////.."
    ".....////////........////////..."
    "....////////........////////...."
    "...////////........////////....."
    "..////////........////////......"
    ".////////........////////......."
    "////////........////////........"
    "///////........////////......../"
    "//////........////////........//"
    "/////........////////........///"
    "////........////////........////"
    "///........////////......../////"
    "//........////////........//////"
    "/........////////........///////"
    "........////////........////////"
    ".......////////........////////."
    "......////////........////////.."
    ".....////////........////////..."
    "....////////........////////...."
    "...////////........////////....."
    "..////////........////////......"
    ".////////........////////......."
;   "12345678901234567890123456789012"
[end]
;
[_polygon]
Type=0x12
String=Retail
FontStyle=NormalFont
Xpm="0 0 1 0"
    "a c #FFE3E3"
[end]
;
[_polygon]
Type=0x13
String=Building
FontStyle=SmallFont
Xpm="0 0 1 0"
    "a c #FF9966"
[end]
;
[_polygon]
Type=0x16
String=Nature Reserve
FontStyle=NormalFont
Xpm="32 32 2 1"
    ". c none"
    "/ c #00FF00"
    "/////........////////........///"
    "////........////////........////"
    "///........////////......../////"
    "//........////////........//////"
    "/........////////........///////"
    "........////////........////////"
    ".......////////........////////."
    "......////////........////////.."
    ".....////////........////////..."
    "....////////........////////...."
    "...////////........////////....."
    "..////////........////////......"
    ".////////........////////......."
    "////////........////////........"
    "///////........////////......../"
    "//////........////////........//"
    "/////........////////........///"
    "////........////////........////"
    "///........////////......../////"
    "//........////////........//////"
    "/........////////........///////"
    "........////////........////////"
    ".......////////........////////."
    "......////////........////////.."
    ".....////////........////////..."
    "....////////........////////...."
    "...////////........////////....."
    "..////////........////////......"
    ".////////........////////......."
    "////////........////////........"
    "///////........////////......../"
    "//////........////////........//"
;   "12345678901234567890123456789012"
[end]
;
[_polygon]
Type=0x22
String=Historic
FontStyle=SmallFont
Xpm="0 0 1 0"
    "a c #FFCC99"
[end]
;
[_polygon]
Type=0x23
String=Amenity
FontStyle=SmallFont
Xpm="0 0 1 0"
    "a c #FFCC99"
[end]
;
[_polygon]
Type=0x24
String=Man Made
Xpm="0 0 1 0"
    "a c #FF99CC"
[end]
;
[_polygon]
Type=0x25
String=Square
String1=0x01,Place
String1=0x02,Platz
String1=0x03,Markt
String1=0x05,Piazza
String1=0x08,Plaza
FontStyle=SmallFont
Xpm="0 0 1 0"
    "a c #FFCCFF"
[end]
;
[_polygon]
Type=0x26
String=Farm/yard
FontStyle=SmallFont
Xpm="0 0 1 0"
    "a c #FFE3E3"
[end]
;
[_polygon]
Type=0x56
String=Island/Islet
Xpm="32 32 2 1"
    ". c none"
    "1 c #FFFFFF"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
[end]
;
[_polygon]
Type=0x58
String=County
Xpm="32 32 2 1"
    ". c none"
    "1 c #FFFFFF"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
    "................................"
;
;----- LINE SECTION ----
;
[_line]
Type=0x11
String=Cycleway
UseOrientation=N
Xpm="32 2 2 1"
    ". c none"
    "_ c #FF0000"
    "______..______..______..______.."
    "______..______..______..______.."
[end]
;
[_line]
Type=0x17
String=Barrier
LineWidth=1
BorderWidth=0
Xpm="0 0 1 0"
    "a c #000000"
[end]
;
[_line]
Type=0x27
;String=Runway
LineWidth=2
BorderWidth=0
Xpm="0 0 1 0"
    "a c #000000"
[end]
;
[_line]
Type=0x2f
String=Race Track
LineWidth=1
BorderWidth=1
Xpm="0 0 2 0"
    "a c #FFFFFF"
    "b c #000000"
[end]
;
; that's it
-------------- next part --------------
#
# This file can be given to mkgmap using the -c option
# Please edit it first to add a description of each map.
#

# You can set the family id for the map
# family-id: 980
# product-id: 1

# Following is a list of map tiles.  Add a suitable description
# for each one.

mapname: 74210001
description: GB-Southampton
input-file: 74210001.osm.pbf

mapname: 74210002
description: GB-Basingstoke
input-file: 74210002.osm.pbf



More information about the mkgmap-dev mailing list