logo separator

[mkgmap-dev] How to search for osmid()=941762308

From ankeric.osm at gmail.com ankeric.osm at gmail.com on Wed May 12 10:00:33 BST 2021

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)



More information about the mkgmap-dev mailing list