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 15:09:38 BST 2021

> 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 at lists.mkgmap.org.uk> On Behalf Of Ticker Berkin
Sent: woensdag 12 mei 2021 11:24
To: Development list for mkgmap <mkgmap-dev at 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 at 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 at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev



More information about the mkgmap-dev mailing list