mkgmap style parsing question.

Hi. I'm a new user of mkgmap -- many thanks for the great tool!! -- and I have a suggestion: After creating one of my first maps I was surprised to not see a particular feature in the 'img' map even though it is present in OSM. After digging around for a while I found that this feature is marked in OSM as 'railway=disused'. I found that the default mkgmap style has a 'railway=abandoned' rule and after I added 'railway=disused' everything worked as expected. Apparently, since mkgmap didn't find a rule for 'railway=disused' the railway just got silently dropped. What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style. Thanks again -- Till PS: Please 'cc' me on any replies; I'm not (yet) subscribed to this list.

Hi Till, you can use the OSM-Composer to create your map. This tool is generating such a report. Walter ----- Original Message ----- From: "Till Straumann" <Till.Straumann@alumni.TU-Berlin.de> To: <mkgmap-dev@lists.mkgmap.org.uk> Sent: Friday, October 15, 2010 2:21 AM Subject: [mkgmap-dev] mkgmap style parsing question.
Hi.
I'm a new user of mkgmap -- many thanks for the great tool!! -- and I have a suggestion:
After creating one of my first maps I was surprised to not see a particular feature in the 'img' map even though it is present in OSM.
After digging around for a while I found that this feature is marked in OSM as 'railway=disused'.
I found that the default mkgmap style has a 'railway=abandoned' rule and after I added 'railway=disused' everything worked as expected. Apparently, since mkgmap didn't find a rule for 'railway=disused' the railway just got silently dropped.
What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
Thanks again -- Till
PS: Please 'cc' me on any replies; I'm not (yet) subscribed to this list. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Does OSM-Composer have an English version that works with the .6 API yet? Regards, Markus. -----Original Message----- From: mkgmap-dev-bounces@lists.mkgmap.org.uk [mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk] On Behalf Of Walter Schlögl Sent: Saturday, 16 October 2010 3:04 AM To: Development list for mkgmap Cc: Till.Straumann@alumni.TU-Berlin.de Subject: Re: [mkgmap-dev] mkgmap style parsing question. Hi Till, you can use the OSM-Composer to create your map. This tool is generating such a report. Walter ----- Original Message ----- From: "Till Straumann" <Till.Straumann@alumni.TU-Berlin.de> To: <mkgmap-dev@lists.mkgmap.org.uk> Sent: Friday, October 15, 2010 2:21 AM Subject: [mkgmap-dev] mkgmap style parsing question.
Hi.
I'm a new user of mkgmap -- many thanks for the great tool!! -- and I have a suggestion:
After creating one of my first maps I was surprised to not see a particular feature in the 'img' map even though it is present in OSM.
After digging around for a while I found that this feature is marked in OSM as 'railway=disused'.
I found that the default mkgmap style has a 'railway=abandoned' rule and after I added 'railway=disused' everything worked as expected. Apparently, since mkgmap didn't find a rule for 'railway=disused' the railway just got silently dropped.
What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
Thanks again -- Till
PS: Please 'cc' me on any replies; I'm not (yet) subscribed to this list. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On 10/15/2010 07:59 PM, Markus_g wrote:
Does OSM-Composer have an English version that works with the .6 API yet?
I don't know - however, I still believe it would be a useful option for mkgmap since OSM-composer is quite heavyweight. I would like to be able to use mkgmap on its own... -- Till PS: Please cc me on any replies - I'm not subscribed to the list, thanks.
Regards,
Markus.
-----Original Message----- From: mkgmap-dev-bounces@lists.mkgmap.org.uk [mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk] On Behalf Of Walter Schlögl Sent: Saturday, 16 October 2010 3:04 AM To: Development list for mkgmap Cc: Till.Straumann@alumni.TU-Berlin.de Subject: Re: [mkgmap-dev] mkgmap style parsing question.
Hi Till,
you can use the OSM-Composer to create your map. This tool is generating such a report.
Walter
----- Original Message ----- From: "Till Straumann"<Till.Straumann@alumni.TU-Berlin.de> To:<mkgmap-dev@lists.mkgmap.org.uk> Sent: Friday, October 15, 2010 2:21 AM Subject: [mkgmap-dev] mkgmap style parsing question.
Hi.
I'm a new user of mkgmap -- many thanks for the great tool!! -- and I have a suggestion:
After creating one of my first maps I was surprised to not see a particular feature in the 'img' map even though it is present in OSM.
After digging around for a while I found that this feature is marked in OSM as 'railway=disused'.
I found that the default mkgmap style has a 'railway=abandoned' rule and after I added 'railway=disused' everything worked as expected. Apparently, since mkgmap didn't find a rule for 'railway=disused' the railway just got silently dropped.
What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
Thanks again -- Till
PS: Please 'cc' me on any replies; I'm not (yet) subscribed to this list. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi, On 10/15/2010 02:21 AM, Till Straumann wrote:
What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
I don't think this is doable. There are thousands of tags and tag/value pairs out there which are documented nowhere. Just have a look at Tagwatch (http://tagwatch.stoecker.eu/Planet/De/index.html). Mappers do have a lot of imagination sometimes ;-).

MapComposer use his own splitter. The tag-statistic is done while splitting and manipulating the tags. MapComposer-statistic includes every tag. All in all I think it more easy to use a service like taginfo.openstreetmap.de. aighes -- View this message in context: http://gis.638310.n2.nabble.com/mkgmap-style-parsing-question-tp5637919p5641... Sent from the Mkgmap Development mailing list archive at Nabble.com.

What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
I don't think this is doable. There are thousands of tags and tag/value pairs out there which are documented nowhere. Just have a look at Tagwatch (http://tagwatch.stoecker.eu/Planet/De/index.html). Mappers do have a lot of imagination sometimes ;-).
I see it the other way. I *think* it should be doable not to hard. The style matcher has to match the style rules for each element in the osm file. If he could not match any rule then it should printout a warning. I expect them to be thousands too. I don't know if this would help to user. Johann

What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
I don't think this is doable. There are thousands of tags and tag/value pairs out there which are documented nowhere. Just have a look at Tagwatch (http://tagwatch.stoecker.eu/Planet/De/index.html). Mappers do have a lot of imagination sometimes ;-).
I see it the other way. I *think* it should be doable not to hard. The style matcher has to match the style rules for each element in the osm file. If he could not match any rule then it should printout a warning.
I expect them to be thousands too. I don't know if this would help to user.
Johann
This is the statistics from OSM-Composer, maybe it's helpfull for this discussion. There is a limit you can set, below this limit the TAGs are not mentioned. Aditionally you can set a flag to add up only the tag-name without each different value, such tags are shown with a * only (e.g. is_in/*) not mapped Tags: 3465 way:layer/* 3352 way:is_in/* 608 way:addr:interpolation/* 562 way:electrified/* 422 way:usage/main 395 way:tracks/2 370 node:highway/turning_circle 327 way:tracks/1 274 node:dispensing/yes This feature is one of the reasons I am using the Composer, but without the add_up option, there will be thousands of entries in this list. Composer also has an ignore option, these TAGs are completely ignored. Walter

What I believe could be useful (if this feature is already available then forgive me posting) would be an option to report ignored tags and tag/value pairs which would alert the user that certain features are not rendered by the current style.
I don't think this is doable. There are thousands of tags and tag/value pairs out there which are documented nowhere. Just have a look at Tagwatch (http://tagwatch.stoecker.eu/Planet/De/index.html). Mappers do have a lot of imagination sometimes ;-).
I see it the other way. I *think* it should be doable not to hard. The style matcher has to match the style rules for each element in the osm file. If he could not match any rule then it should printout a warning.
I expect them to be thousands too. I don't know if this would help to user.
Johann
Johann, the idea to printout a warning sounds good. But there are some restrictions within mkgmap that makes it unfeasable. When mkgmap reads the OSM data all tags which keys are not referenced in the style files are dropped. This improves the performance and reduces the memory footprint *enormously*. The style file processing is done at a later stage. So in case your style file only contains a rule for natural=water you would get a warning for natural=land but not for landuse=residential. I don't think that's what you want? An overall statistics (how often is tag natural=water used) would be quite easy to implement but probably it would decrease performance. And in the end that's exactly what you can get from http://tagwatch.stoecker.eu/Planet/De/index.html. WanMil

Johann,
the idea to printout a warning sounds good. But there are some restrictions within mkgmap that makes it unfeasable.
Yes, unfortunatelly I know the internas somewhat :-)
When mkgmap reads the OSM data all tags which keys are not referenced in the style files are dropped. This improves the performance and reduces the memory footprint *enormously*. The style file processing is done at a later stage.
So why not printout a warning at this stage, where the key is dropped? Or maybe not printout directly, but fill a statistics class with it. So the user can see, there are x (thousand) occurences of a key he has not handled in his style file.
So in case your style file only contains a rule for natural=water you would get a warning for natural=land but not for landuse=residential.
I don't think that's what you want?
I personally don't need this feature at all. It was meant only as a suggestion in response to the original poster. I will not implement it. ;-) If I will find some time for the mkgmap project, I have other preferences. Johann
participants (7)
-
aighes
-
Johann Gail
-
Markus_g
-
Ralf Kleineisel
-
Till Straumann
-
Walter Schlögl
-
WanMil