logo separator

[mkgmap-dev] unusual if-then results

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Sep 13 06:09:32 BST 2019

Hi Nick,

thanks for reporting. I can reproduce the results and I think I found a fix, see attached patch.
The content of the if-stack was corrupted.

 @Steve: Please review, maybe there are other places where copy() should be used?

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von nwillink <osm at pinns.co.uk>
Gesendet: Donnerstag, 12. September 2019 12:22
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: [mkgmap-dev] unusual if-then results

Hi All

I'm getting curious results using a conditional statement.

I insert the following in polygons (default style) at the end ,just before
<finalize>:

if (area=yes & landuse!=residential) then
landuse=* {set name= '$(landuse)';}
(landuse=*|waterway=*|amenity=*|natural=*|leisure=*) {echotags "mopping up
area"} [0x10910 resolution 24 continue]
end

I use the Ireland & Northern Ireland pbf from Geofabrik

The echotags list includes some puzzling entries

1) some entries (see below) do not include 'area=yes', ie landuse=religious
& landuse=plant_nursery
2) it also includes landuse=residential despite having specified
'landuse!=residential' in my 'if statement'

Regards

Nick

This is part of my echotags list

File:d:\temp\ireland-and-northern-ireland-latest.osm.pbf

* mopping up area *
Way 194526400
landuse=religious
 mkgmap:cache_area_size=242.848

------------------------------------
* mopping up area *
Way 456431379
area=yes
 landuse=flowerbed
 mkgmap:cache_area_size=35.741
 mkgmap:if:1=true
 name=flowerbed

------------------------------------
* mopping up area *
Way 452524709
landuse=plant_nursery
 mkgmap:cache_area_size=4250.272

------------------------------------
* mopping up area *
Way 465641413
landuse=religious
 mkgmap:cache_area_size=614.697
 mkgmap:residential=yes

------------------------------------
* mopping up area *
Way generated from 456431378
area=yes
 landuse=flowerbed
 mkgmap:cache_area_size=64.662
 mkgmap:if:1=true
 mkgmap:mp_created=true
 mkgmap:stylefilter=polygon
 name=flowerbed

 * mopping up area *
Way 465641413
landuse=religious
 mkgmap:cache_area_size=614.697
 mkgmap:residential=yes





--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: if-then.patch
Type: application/octet-stream
Size: 583 bytes
Desc: if-then.patch
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20190913/e28c16b9/attachment.obj>


More information about the mkgmap-dev mailing list