You are not logged in.
- Topics: Active | Unanswered
Announcement
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.***
Pages: 1
#1 2012-03-09 21:04:30
- chris66
- Member

- From: Germany
- Registered: 2009-05-24
- Posts: 10,128
img Files inspector
Hi,
I'm looking for a program which can display details like road-class and road-speed for
garmin img files.
I tried QLandkarteGT, but this only shows the garmin-type code like 0x06 for residental streets.
Chris
Mapper aus dem Münsterland.
Offline
#2 2012-03-09 21:18:16
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: img Files inspector
GPS Mapedit can do this, http://www.geopainting.com/

Offline
#3 2012-03-11 11:20:36
- Bernhard Hiller
- Member

- Registered: 2011-05-10
- Posts: 1,122
Re: img Files inspector
That seems to be an interesting tool. But it has a lot of problems, at least on my Win7 64bit computer:
All roads are road class 0 (unpaved minor) with a speed limit of 5 km/h... It does not load a map of Germany (too big, despite 8GB of memory). Maps look different on screen than they do on the device (i.e. style file is not used by the program)...
I just sent a bug report to them.
Offline
#4 2012-03-11 11:48:48
- chris66
- Member

- From: Germany
- Registered: 2009-05-24
- Posts: 10,128
Re: img Files inspector
That seems to be an interesting tool. But it has a lot of problems, at least on my Win7 64bit computer:
All roads are road class 0 (unpaved minor) with a speed limit of 5 km/h...
I can not confirm this for the map I tested. (also win7-64)
A have a minor issue: For overlay-lines (several lines over another), I see only the top-one.
Chris
Mapper aus dem Münsterland.
Offline
#5 2012-03-11 16:39:22
- Seldom
- Member
- Registered: 2009-01-25
- Posts: 193
Re: img Files inspector
That seems to be an interesting tool. But it has a lot of problems, at least on my Win7 64bit computer:
All roads are road class 0 (unpaved minor) with a speed limit of 5 km/h... It does not load a map of Germany (too big, despite 8GB of memory). Maps look different on screen than they do on the device (i.e. style file is not used by the program)...
I just sent a bug report to them.
GPSmapedit is the standard editor for files compiled with cgpsmapper.
Class 0 roads are basically routable lines that have not been classified as anything more specific. They generate a warning when compiled with cgpsmapper, and are generally not used.
Is it possible that the IMG file you opened did not have roads classified?
Offline
#6 2012-03-11 19:13:18
- kukuk
- Member
- Registered: 2011-09-13
- Posts: 225
- Website
Re: img Files inspector
Bernhard Hiller wrote:That seems to be an interesting tool. But it has a lot of problems, at least on my Win7 64bit computer:
All roads are road class 0 (unpaved minor) with a speed limit of 5 km/h... It does not load a map of Germany (too big, despite 8GB of memory). Maps look different on screen than they do on the device (i.e. style file is not used by the program)...
I just sent a bug report to them.GPSmapedit is the standard editor for files compiled with cgpsmapper.
Class 0 roads are basically routable lines that have not been classified as anything more specific. They generate a warning when compiled with cgpsmapper, and are generally not used.
Is it possible that the IMG file you opened did not have roads classified?
After reading this thread I tested the tool with my own map. I see the same problem, all roads are classified as "0" with a speed limit of "0". The map is generated with mkgmap and all roads have road_class and road_speed set. Routing works fine with mapsource and various GARMIN devices.
Between, I'm using wine on Linux.
Thorsten
Offline
#7 2012-03-11 20:57:22
- Seldom
- Member
- Registered: 2009-01-25
- Posts: 193
Re: img Files inspector
After reading this thread I tested the tool with my own map. I see the same problem, all roads are classified as "0" with a speed limit of "0". The map is generated with mkgmap and all roads have road_class and road_speed set. Routing works fine with mapsource and various GARMIN devices.
Between, I'm using wine on Linux.
Thorsten
The problem is that all levels of the map are represented in the IMG file. If you zoom in to about 30M (100 ft) and select a road that is type 0 at 300M you will find that it has a defined road type (in the sample I just tried it was type 0x4). The sample was generated using a Geofabrik of the western US compiled from the PBF with mkgmap.
Offline
#8 2012-03-11 21:13:58
- kukuk
- Member
- Registered: 2011-09-13
- Posts: 225
- Website
Re: img Files inspector
kukuk wrote:After reading this thread I tested the tool with my own map. I see the same problem, all roads are classified as "0" with a speed limit of "0". The map is generated with mkgmap and all roads have road_class and road_speed set. Routing works fine with mapsource and various GARMIN devices.
Between, I'm using wine on Linux.
Thorsten
The problem is that all levels of the map are represented in the IMG file. If you zoom in to about 30M (100 ft) and select a road that is type 0 at 300M you will find that it has a defined road type (in the sample I just tried it was type 0x4). The sample was generated using a Geofabrik of the western US compiled from the PBF with mkgmap.
Yes, if I zoom in further it works.
Thanks!
Thorsten
Offline
#9 2012-03-12 18:24:14
- Bernhard Hiller
- Member

- Registered: 2011-05-10
- Posts: 1,122
Re: img Files inspector
Exactly, I have to zoom in to a level of 150 meters.
By the way, for my user defined road types (e.g. [0x10e01 road_class=0 road_speed=1 resolution 20]), the tool says "unknown" and a "routing" tab is not displayed under "Properties". Maybe I missed something when setting up my style file. Any hints?
Offline
#10 2012-03-12 21:07:42
- Seldom
- Member
- Registered: 2009-01-25
- Posts: 193
Re: img Files inspector
By the way, for my user defined road types (e.g. [0x10e01 road_class=0 road_speed=1 resolution 20]), the tool says "unknown" and a "routing" tab is not displayed under "Properties". Maybe I missed something when setting up my style file. Any hints?
Without seeing your map, I can't be sure, but I suspect that your custom road type is something that mkgmap recognizes but cgpsmapper doesn't. As I said above, this is the main editor used with the cgpsmapper compiler, and mkgmap and cgpsmapper do some things (like the map header) quite differently.
Last edited by Seldom (2012-03-12 21:08:27)
Offline
#11 2012-03-13 07:48:39
- csdf
- Member
- From: UK, living in Abu Dhabi
- Registered: 2009-08-11
- Posts: 313
- Website
Re: img Files inspector
0x10e01 is not a routeable type, that's why. Routable types are: 0x01 - 0x13, 0x16, 0x1a, 0x1b only
Offline
Pages: 1