How to search for osmid()=941762308

When an OSM-Mapper makes a mistake, I sometimes correct this Error (or difference in opinion) by using mkgmap. highway=* & osmid()=22689239 { set highway=track; set tracktype=grade1; delete service } Which is OK, accepted by mkgmap syntax. Yesterday I made a mistake as well: INNER in Multipolygon is untagged and JOSM doesn't warn (no warning: "Untagged ways (1)"). Today I tried to correct my mistake: osmid()=941762308 { set landuse=forest } But, mkgmap doesn’t accept my correction: SEVERE (global): Error in style: Error: (inc/DEBUG_begin:148): Invalid rule, expression cannot be indexed: osmid()=941762308 I was assuming osmid() is a Primary Key. How to search for a Primary Key using mkgmap, If the way is also untagged? BTW, JOSM can find (search): id=941762308. Eric (AnkEric)

Hi Eric, untagged ways are normal when they appear as role=inner in multipolygons. I see no need to produce a message. An untagged way is filtered long before the style is processed, so your trick can't work. I expect that the multipolygon processing creates another way for the untagged role=inner way, so it might be processed, but not with id 941762308 In JOSM you can search for id:941762308 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von ankeric.osm@gmail.com <ankeric.osm@gmail.com> Gesendet: Mittwoch, 12. Mai 2021 11:00 An: 'Development list for mkgmap' Betreff: [mkgmap-dev] How to search for osmid()=941762308 When an OSM-Mapper makes a mistake, I sometimes correct this Error (or difference in opinion) by using mkgmap. highway=* & osmid()=22689239 { set highway=track; set tracktype=grade1; delete service } Which is OK, accepted by mkgmap syntax. Yesterday I made a mistake as well: INNER in Multipolygon is untagged and JOSM doesn't warn (no warning: "Untagged ways (1)"). Today I tried to correct my mistake: osmid()=941762308 { set landuse=forest } But, mkgmap doesn’t accept my correction: SEVERE (global): Error in style: Error: (inc/DEBUG_begin:148): Invalid rule, expression cannot be indexed: osmid()=941762308 I was assuming osmid() is a Primary Key. How to search for a Primary Key using mkgmap, If the way is also untagged? BTW, JOSM can find (search): id=941762308. Eric (AnkEric) _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Eric you could try: mkgmap:mp_role=inner & osmId()=... but I suspect it won't work. generally inners are just cut out of outers and have no representation. The ways that make them will be there, but, having no tags, are dropped before style processing. Ticker On Wed, 2021-05-12 at 11:00 +0200, ankeric.osm@gmail.com wrote:
When an OSM-Mapper makes a mistake, I sometimes correct this Error (or difference in opinion) by using mkgmap.
highway=* & osmid()=22689239 { set highway=track; set tracktype=grade1; delete service }
Which is OK, accepted by mkgmap syntax.
Yesterday I made a mistake as well: INNER in Multipolygon is untagged and JOSM doesn't warn (no warning: "Untagged ways (1)").
Today I tried to correct my mistake:
osmid()=941762308 { set landuse=forest }
But, mkgmap doesn’t accept my correction:
SEVERE (global): Error in style: Error: (inc/DEBUG_begin:148): Invalid rule, expression cannot be indexed: osmid()=941762308
I was assuming osmid() is a Primary Key. How to search for a Primary Key using mkgmap, If the way is also untagged?
BTW, JOSM can find (search): id=941762308.
Eric (AnkEric)
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

you could try: mkgmap:mp_role=inner & osmId()=...
Almost correct but case sensitive: "osmId". SEVERE (global): Error in style: Error: (inc/DEBUG_begin:150): Error: No function with name 'osmId()' Correct syntax is " mkgmap:mp_role=inner & osmid()=...", which throws no Error message. However, untagged inner way is not updated: mkgmap:mp_role=inner & osmid()=941762308 { set landuse=forest } Gerd: "multipolygon processing creates another way". Oké, but I was assuming my "inc/DEBUG_begin" is executed at the very beginning of mkgmap, before "polygons". Also, tagged inner way is not updated: mkgmap:mp_role=inner & osmid()=54108919 { set natural=water; delete landuse } Only option I found for updating a - tagged - polygon: landuse=* & osmid()=54108919 { set natural=water; delete landuse } So, I will have to wait for a new dataset and tomorrow my Map will be correct. Which is 2 hours before deadline; -) Case closed... thanks for help. Eric (AnkEric) -----Original Message----- From: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> On Behalf Of Ticker Berkin Sent: woensdag 12 mei 2021 11:24 To: Development list for mkgmap <mkgmap-dev@lists.mkgmap.org.uk> Subject: Re: [mkgmap-dev] How to search for osmid()=941762308 Hi Eric you could try: mkgmap:mp_role=inner & osmId()=... but I suspect it won't work. generally inners are just cut out of outers and have no representation. The ways that make them will be there, but, having no tags, are dropped before style processing. Ticker On Wed, 2021-05-12 at 11:00 +0200, ankeric.osm@gmail.com wrote:
When an OSM-Mapper makes a mistake, I sometimes correct this Error (or difference in opinion) by using mkgmap.
highway=* & osmid()=22689239 { set highway=track; set tracktype=grade1; delete service }
Which is OK, accepted by mkgmap syntax.
Yesterday I made a mistake as well: INNER in Multipolygon is untagged and JOSM doesn't warn (no warning: "Untagged ways (1)").
Today I tried to correct my mistake:
osmid()=941762308 { set landuse=forest }
But, mkgmap doesn’t accept my correction:
SEVERE (global): Error in style: Error: (inc/DEBUG_begin:148): Invalid rule, expression cannot be indexed: osmid()=941762308
I was assuming osmid() is a Primary Key. How to search for a Primary Key using mkgmap, If the way is also untagged?
BTW, JOSM can find (search): id=941762308.
Eric (AnkEric)
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
ankeric.osm@gmail.com
-
Gerd Petermann
-
Ticker Berkin