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 2016-02-10 15:46:14

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Openfietsmap

Hello,

I downloaded a map from  from "http://garmin.openstreetmap.nl/" a "Routable Bicycle (Openfietsmap Lite)" from US-Florida.
I install this map.

24546820ub.png
Openstreetmap.nl

I downloaded my own map from openstreetmap.org via Overpass API. I use the 20010.typ file to compile it, but when I load both maps in Basecamp, they look different.


24546822qf.png
self made map

I tried the a self made map with the 22975.typ file, but there was not change.

I have a second difference. When I zoom my outline map become white. The openstreetmap.nl still works:

24546909hj.png
self made map

24546908me.png
Openstreetmap.nl



Many greetings
Martin

Offline

#2 2016-02-10 16:09:56

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

How did you compile your map (mkgmap default settings?) The Openfietsmap lite uses its own style defintions, the typ file cannot be used with the default map. The settings for the overview Basemap are in the info file. Without this file there is no basemap.

#
# Style options.
#

# The levels specification for this style

#levels = 0:24, 1:22, 2:20, 3:18, 4:16

levels = 0:24, 1:22, 2:20, 3:18
overview-levels = 4:17, 5:15, 6:14

Offline

#3 2016-02-10 16:31:09

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

I had problems using the Styles-Light so took Styles!
Upps! That is not the same !!!

I copied the Style directory from openstreetmap.nl.
I use osm_bnl.args and the type file 20010.typ.

my command after splitter is:

java -jar ./mkgmap-r3664/mkgmap.jar  -c osm_bnl.args -c template.args --gmapsupp  6324*.osm.pbf 20010.typ

I modified (bold) them a little:

osm_bnl.args  wrote:

family-id: 20010
product-id: 1
draw-priority: 20
series-name: OpenFietsMap (US-FL)
family-name: OpenFietsMap (US)
description: OpenFietsMap (Florida)
copyright-message: Map data  openstreetmap.org, Map layout  openfietsmap.nl
area-name: OFM_USFL
country-name: US
country-abbr: USFL
style-file: Styles
overview-mapname: 20010000
#download the latest sea files from from http://osm2.pleiades.uni-wuppertal.de/sea/latest/
precomp-sea: sea.zip
generate-sea: land-tag=natural=background
#download the latest bounds from http://osm2.pleiades.uni-wuppertal.de/bounds/latest/
bounds: bounds.zip
location-autofill: is_in,nearest
housenumbers
latin1
code-page: 1252
show-profiles: 1
merge-lines
add-pois-to-areas
add-pois-to-lines
link-pois-to-ways
min-size-polygon: 4
preserve-element-order
keep-going
net
route
index

My ./Styles/options is the same as yours:

#
# Style options.
#

# The levels specification for this style

#levels = 0:24, 1:23, 2:22, 3:21, 4:20, 5:18, 6:16

levels = 0:24, 1:23, 2:22, 3:20, 4:18
overview-levels = 5:17, 6:15, 7:14

My ./Styles/info file:

#
# This file contains information about the style.
# It is completely optional.
#


# A short one line description of the style
#
summary: Openfietsmap style

# Version of the style itself
#
version=1.0


Terms of use

You are free to use the styles and typ files for personal use only.
Copying, distribution or publishing is not allowed without attribution and
permission of Openfietsmap.nl

Last edited by AllgäuCycle (2016-02-10 16:34:47)

Offline

#4 2016-02-10 17:15:16

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

Ah, well, the typ files for the lite and full versions are the same. So don't worry. Only the lite will render less objects like buildings.
So its ok to use the full version with that typ file. I meant option file, not the info file, sorry.
Which map are you using in Basecamp? The gmapsupp does not have an overview map, maybe thats the reason?

Offline

#5 2016-02-10 19:49:46

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

Here some more Information:

I have two maps in basecamp, both from this morning. The openstreetmap.nl Lite installed by the exe file.
I installed the gmapsupp by GMapTool into my c:\garmin\maps\US-Florida directory.

My US-Florida Dir:
24550406qf.png

The openstreetmap.nl Dir:
24550408sp.png

Using my US-Florida map:
24550409cc.jpg

Using the Openstreetmap.nl map
24550410tb.jpg

Greetings

Martin

Offline

#6 2016-02-10 21:22:17

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

AllgäuCycle wrote:

I installed the gmapsupp by GMapTool into my c:\garmin\maps\US-Florida directory.


The gmapsupp.img does not contain an Overview map. When you run mkgmap this overview map is only created for the pc version.
Mkgmap will write temporarily ovm_*.img files to create such map. Your mapset.img is empty because the ovm files are not written into the gmapsupp.img. If you have compiled those files, you can install the mapset with mapsettoolkit or run the nsi script with nsis.

Offline

#7 2016-02-10 21:24:47

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

Martin, I have split your question off from the long garmin thread into a new topic.

Offline

#8 2016-02-11 08:21:02

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

ligfietser wrote:

When you run mkgmap this overview map is only created for the pc version

Is there a difference between the java-file running under Linux or under Windows?

I make the download of the osm data, splitter of files and run MKgmap on my Linux maschine. Then I start my virtualbox with win10 and use a share dir to access to gmagsupp.img file. I use GMapTool to create a new map directory with the new map in. Then I change to this directory and install the new map.

How to get this ovm_*.img into the map?

In my working directory ovm_*.img are created:

-rw-rw-r-- 1 martin martin 121K Feb 10 09:14 10010000.img
-rw-rw-r-- 1 martin martin 3,8K Feb 10 09:14 10010000.tdb
-rw-rw-r-- 1 martin martin 121K Feb 10 14:42 20010000.img
-rw-rw-r-- 1 martin martin 3,8K Feb 10 14:42 20010000.tdb
-rw-rw-r-- 1 martin martin  33K Mär 26  2014 20010.typ
-rw-rw-r-- 1 martin martin  14M Feb 10 14:38 63240001.img
-rw-rw-r-- 1 martin martin 7,5M Feb 10 09:00 63240001.osm.pbf
-rw-rw-r-- 1 martin martin 7,5M Feb 10 14:38 63240002.img
-rw-rw-r-- 1 martin martin 6,8M Feb 10 09:00 63240002.osm.pbf
-rw-rw-r-- 1 martin martin  11M Feb 10 14:39 63240003.img
-rw-rw-r-- 1 martin martin 6,7M Feb 10 09:00 63240003.osm.pbf
-rw-rw-r-- 1 martin martin  11M Feb 10 14:39 63240004.img
-rw-rw-r-- 1 martin martin 7,2M Feb 10 09:00 63240004.osm.pbf
-rw-rw-r-- 1 martin martin 9,0M Feb 10 14:39 63240005.img
-rw-rw-r-- 1 martin martin 8,0M Feb 10 09:00 63240005.osm.pbf
-rw-rw-r-- 1 martin martin 8,1M Feb 10 14:39 63240006.img
-rw-rw-r-- 1 martin martin 5,9M Feb 10 09:00 63240006.osm.pbf
-rw-rw-r-- 1 martin martin 9,3M Feb 10 14:39 63240007.img
-rw-rw-r-- 1 martin martin 5,9M Feb 10 09:00 63240007.osm.pbf
-rw-rw-r-- 1 martin martin 8,1M Feb 10 14:40 63240008.img
-rw-rw-r-- 1 martin martin 7,5M Feb 10 09:00 63240008.osm.pbf
-rw-rw-r-- 1 martin martin 9,6M Feb 10 14:40 63240009.img
-rw-rw-r-- 1 martin martin 7,7M Feb 10 09:00 63240009.osm.pbf
-rw-rw-r-- 1 martin martin  14M Feb 10 14:40 63240010.img
-rw-rw-r-- 1 martin martin 7,9M Feb 10 09:00 63240010.osm.pbf
-rw-rw-r-- 1 martin martin  14M Feb 10 14:40 63240011.img
-rw-rw-r-- 1 martin martin 7,5M Feb 10 14:40 63240012.img
-rw-rw-r-- 1 martin martin  11M Feb 10 14:41 63240013.img
-rw-rw-r-- 1 martin martin  11M Feb 10 14:41 63240014.img
-rw-rw-r-- 1 martin martin 9,0M Feb 10 14:41 63240015.img
-rw-rw-r-- 1 martin martin 8,1M Feb 10 14:41 63240016.img
-rw-rw-r-- 1 martin martin 9,3M Feb 10 14:41 63240017.img
-rw-rw-r-- 1 martin martin 8,1M Feb 10 14:41 63240018.img
-rw-rw-r-- 1 martin martin 9,6M Feb 10 14:42 63240019.img
-rw-rw-r-- 1 martin martin  14M Feb 10 14:42 63240020.img
lrwxrwxrwx 1 martin martin  100 Feb  9 09:22 areas_bnl.list -> /home/martin/GarminMapTools/mijndev.openstreetmap.nl/~ligfietser/openfietsmap/Scripts/areas_bnl.list
-rw-rw-r-- 1 martin martin 1,1K Feb 10 08:59 areas.list
-rw-rw-r-- 1 martin martin  345 Feb 10 08:59 areas.poly
-rw-rw-r-- 1 martin martin  247 Nov 30  2012 benelux.poly
-rw-rw-r-- 1 martin martin 780M Feb  8 21:06 bounds.zip
-rw-rw-r-- 1 martin martin  73K Feb 10 08:59 densities-out.txt
-rw-rw-r-- 1 martin martin 1,7G Feb 10 08:54 map.osm
drwxrwxr-x 5 martin martin 4,0K Feb  8 11:19 mijndev.openstreetmap.nl
drwxr-xr-x 5 martin martin 4,0K Feb  4 21:24 mkgmap-r3664
-rw-rw-r-- 1 martin martin  809 Feb 10 14:38 osm_bnl.args
-rw-rw-r-- 1 martin martin 432K Feb 10 14:38 ovm_63240001.img
-rw-rw-r-- 1 martin martin 161K Feb 10 14:38 ovm_63240002.img
-rw-rw-r-- 1 martin martin 122K Feb 10 14:39 ovm_63240003.img
-rw-rw-r-- 1 martin martin 124K Feb 10 14:39 ovm_63240004.img
-rw-rw-r-- 1 martin martin 185K Feb 10 14:39 ovm_63240005.img
-rw-rw-r-- 1 martin martin 126K Feb 10 14:39 ovm_63240006.img
-rw-rw-r-- 1 martin martin  81K Feb 10 14:39 ovm_63240007.img
-rw-rw-r-- 1 martin martin 133K Feb 10 14:39 ovm_63240008.img
-rw-rw-r-- 1 martin martin 146K Feb 10 14:40 ovm_63240009.img
-rw-rw-r-- 1 martin martin 585K Feb 10 14:40 ovm_63240010.img
-rw-rw-r-- 1 martin martin 432K Feb 10 14:40 ovm_63240011.img
-rw-rw-r-- 1 martin martin 161K Feb 10 14:40 ovm_63240012.img
-rw-rw-r-- 1 martin martin 122K Feb 10 14:40 ovm_63240013.img
-rw-rw-r-- 1 martin martin 124K Feb 10 14:41 ovm_63240014.img
-rw-rw-r-- 1 martin martin 185K Feb 10 14:41 ovm_63240015.img
-rw-rw-r-- 1 martin martin 126K Feb 10 14:41 ovm_63240016.img
-rw-rw-r-- 1 martin martin  81K Feb 10 14:41 ovm_63240017.img
-rw-rw-r-- 1 martin martin 133K Feb 10 14:41 ovm_63240018.img
-rw-rw-r-- 1 martin martin 146K Feb 10 14:41 ovm_63240019.img
-rw-rw-r-- 1 martin martin 585K Feb 10 14:42 ovm_63240020.img

-rw-rw-r-- 1 martin martin 127M Feb  8 21:04 sea.zip
drwxr-xr-x 4 martin martin 4,0K Aug 12  2015 splitter-r427
-rwxrw-r-- 1 martin martin  305 Feb 10 09:07 splitter.sh
lrwxrwxrwx 1 martin martin   92 Feb  9 08:57 Styles -> /home/martin/GarminMapTools/mijndev.openstreetmap.nl/~ligfietser/openfietsmap/Scripts/Styles
lrwxrwxrwx 1 martin martin   98 Feb  9 08:57 Styles-light -> /home/martin/GarminMapTools/mijndev.openstreetmap.nl/~ligfietser/openfietsmap/Scripts/Styles-light
-rw-rw-r-- 1 martin martin  982 Feb 10 08:59 template.args

Offline

#9 2016-02-11 09:11:05

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

I'm not familiar with Linux. Maybe someone else has an answer or you can join the mkgmap-dev mailing list to ask questions:
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

How to get this ovm_*.img into the map?
You dont have to. Mkgmap will write it into the overview img (20010000.img)
All you need to do is install those index map files on your computer. For Windows I use nsis (you need add nsis as option in your args file).
Or else you can use mapsettoolkit. But I dont know how to do that on Linux.

Offline

#10 2016-02-11 11:18:34

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

I modified (bold) my mkgmap commandline :

java -jar ./mkgmap-r3664/mkgmap.jar  -c osm_bnl.args -c template.args --gmapsupp  --tdbfile --overview-mapname=osmmap 6324*.osm.pbf 20010.typ

Then I became a new additionally map osmmap.img. I use these map und gmapsupp.img to build the map for basecamp and it works!
24554781vk.jpg

And it looks nicer, than the view from Openstreetmap.nl. Have a look at the small overview-map. Here are no details only larger blocks.
24554802lq.jpg

When I add the osmmap.img to build the new basecamp map it replaced my name by OpenFietsMap(US); This is the family-name: from osm_bnl.args.

I think one problem is solved. smile The overview map.

But now the light green (light green -> hex: d8f7ba) color of map. hmm The contrast on my garmin oregon 450 is not so good, I would prefer the white color from the openstreetmap.nl.

Offline

#11 2016-02-11 12:00:10

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

Great that you solved it smile The rough pattern in the light style is used to make it render faster.
The background is natural=background
In your polygon file this is specified with natural=background [0x010100 resolution 12]
The light style that you prefer is using natural=background [0x010200 resolution 12]
Another option is to edit the polygon 0x010100 in the typ file with typviewer, so you can choose another color.

Offline

#12 2016-02-11 13:14:30

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

In the directory ./Styles I have a file polygons
here is only one position with natural=background

# building tags
include 'inc/bag';
building=no {delete building}
building=* & building!=yes  { name '${name}' | '${building}' } [0x13 resolution 24]
building=* [0x13 resolution 24]

natural=land [0x27 resolution 20]
natural=background [0x010100 resolution 12]


When I change this to 0x010200;  nothing change in basecamp!

But it is okay! I leave it as it is! I am happy now!
I want to download and test my modification, I made in Openstreetmap.org as soon as possible in basecamp. I am driving with my bike and my garmin and I am looking for the bicycle ways. When it is running under bascamp that is okay. I can download your map later ...

Thanks a lot cool
Martin

Offline

#13 2016-02-11 15:33:46

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

AllgäuCycle wrote:

When I change this to 0x010200;  nothing change in basecamp!

Probably Basecamp still sees the old map in the memory cache. Refresh the tiles with 2x ctrl-G.

Offline

#14 2016-02-11 19:59:11

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

I am testing...
   with Styles-light
   with Styles
   and with new color number

Answer tomorrow...

Martin

Offline

#15 2016-02-12 14:05:31

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

ligfietser wrote:

Probably Basecamp still sees the old map in the memory cache. Refresh the tiles with 2x ctrl-G.

That was a very good info smile

What I did:

I copied 20010.typ to 20011.typ and 20013.typ, that I have no conflict im Basecamp.

I made 3 different Styles directories
./Styles        ->   copy from openstreetmap.nl
./Styles-light ->  copy from openstreetmap.nl
./Styles10200->  copy from ./Styles

in ./Styles10200 I changed in the file polygons the field natural=background [0x010200 resolution 12]

I use 3 args files:
                                         family-id:  family-name:                             style-file:       overview-mapname:
osm_styles.args              ->20010       OpenFietsMap (US)                    Styles           20010000
osm_styles_light.args      ->20011       OpenFietsMap (US Lite)              Styles-light   20011000
osm_styles_10200.args   -> 20013      OpenFietsMap (US-Background)  Styles10200  20013000

I use 3 different command lines for:
mkgmap -c template.args --gmapsupp  --tdbfile --overview-mapname=osmmap 6324*.osm.pbf   -c osm_???.args   200xx.typ

Styles         ->  -c osm_styles.args           20010.typ   
Styles-light  ->  -c osm_styles_light.args   20011.typ
Styles10200 -> -c osm_styles_10200.args 20013.typ

Your map (openstreetmap.nl)
24564385lb.jpg

My osm_styles-light
24564387ol.jpg

Here the backgroung color is white (because it is the light version), but the water (blue) goes into normal area.
In all my maps I use the same sea.zip.
I tested the server http://osm2.pleiades.uni-wuppertal.de/sea/latest/ and http://osm.thkukuk.de/data/.
They have different sizes! This maps are build with http://osm.thkukuk.de/data/

And some streetnames are at different locations.

My osm_styles
24564386kb.jpg

My osm_styles new background color
24564388yp.jpg

There seems to be not difference!

Offline

#16 2016-02-12 15:10:05

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

Addendum

In all my maps there all same light grey fine lines, but not in yours! You can see some in the upper pictures too.
(Blue mark)
The red mark where the water area have differnet sizes, could be arise by the lower resolution from the lite version!



My ./Styles maps
24565114la.jpg


Your US-Lite map
24565115vg.jpg

Last edited by AllgäuCycle (2016-02-12 15:12:37)

Offline

#17 2016-02-12 18:36:21

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

I have no idea what those grey lines are. Did you check the raw OSM data?

Offline

#18 2016-02-12 18:40:35

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

How to check raw data?

Offline

#19 2016-02-12 18:42:40

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

What is with the water in "My osm_styles-light" map?

Offline

#20 2016-02-12 21:53:02

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

AllgäuCycle wrote:

How to check raw data?

With an OSM editor in the database of course.
I dont know what exactly caused the water shape difference.
Edit: maybe this option?

polygon-size-limits=17:2, 15:0

Last edited by ligfietser (2016-02-12 22:20:33)

Offline

#21 2016-02-12 22:39:06

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

I downloaded my own map from openstreetmap.org via Overpass API.

Maybe this data is incomplete and/or corrupt and causes those differences.
Try a bigger data extract, Florida from Geofabrik for example.

Offline

#22 2016-02-13 13:10:19

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

ligfietser wrote:

Edit: maybe this option?

polygon-size-limits=17:2, 15:0

No there is no difference with this option for mkgmap! sad

I am trying to test the RAW database and other downloads ...

Martin

Offline

#23 2016-02-14 12:35:56

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Openfietsmap

The light version has this option

levels = 0:24, 1:22, 2:20, 3:18
overview-levels = 4:17, 5:15, 6:14

The full version uses an extra level (23 zoom):

levels = 0:24, 1:23, 2:22, 3:20, 4:18
overview-levels = 5:17, 6:15, 7:14

This causes those rougher edges on the light map.

Offline

#24 2016-02-16 15:44:23

AllgäuCycle
Member
From: Germany
Registered: 2016-02-10
Posts: 24

Re: Openfietsmap

Hello ligfietser,
I have very much to do now and I have no spare time for openstreetmap! roll
Give me some time ...

Martin

Last edited by AllgäuCycle (2016-02-16 21:57:41)

Offline

Board footer

Powered by FluxBB