
Hi, Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with? Regards, Steve

Hi Steve,
Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with?
Don't know whether it's valid or not but I will put in a workaround. Cheers, Mark

On 27.02.2010 14:43, Mark Burton wrote:
Hi Steve,
Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with?
I think we would need a functions (be it inside style-file or outside) that doubles features if ";" is present inside: highway=*; railway=* ; landuse=* ; .... (it should not double the object if ";" is only inside name or ref).

Hi Steve,
Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with?
The attached patch is a quick workaround. If possible, please test. Cheers, Mark

Thanks Mark. Unfortunately, I don't build mkgmap, so can't test the patch. Steve On 27 February 2010 14:12, Mark Burton <markb@ordern.com> wrote:
Hi Steve,
Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with?
The attached patch is a quick workaround.
If possible, please test.
Cheers,
Mark
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Patch works for UK. However I think we should rather have this done generally for ";". Here is the current behaviour of mkgmap when it comes to in my eyes incorrect, but for some people acceptable strange tagging: *a) Two times the same key (e.g. natural=coastline ; natural=forest):* I think this does not matter anymore. JOSM does not allow to use this. Just for reference. Current behavior is that on all objects with two times the same tag, the second tag is read, i.e. <way id='-5251' action='modify' visible='true'> <nd ref='-5252' /> <nd ref='-5253' /> <nd ref='-5254' /> <nd ref='-5255' /> <nd ref='-5252' /> <tag k='highway' v='trunk' /> * *<tag k='highway' v='motorway' /> </way> So in this case, motorway would be rendered. It I is switched over to: ..... <nd ref='-5252' /> <tag k='highway' v='motorway' /> <tag k='highway' v='trunk' /> </way> then trunk would be rendered. *b) values divided by ";"* You can currently only get them by using a wildcard like shop=* or natural=*. I think either mkgmap should take the" ;" 1. as stop, and use the value up to ";" - except if value is "name" or "ref". This should not increase compile time at all if implemented well to my understanding, and at least the first (and usually major) value would be parsed. Maybe the same could be achieved by regex??? 2. use it to split up the value into two keys. So say out of highway=motorway;trunk make highway=motorway & highway=trunk. As in the motorway;trunk a proper style-file (like the default) would drop trunk (no "continue") used.

Hi Felix,
Patch works for UK.
Good, me too - I have committed it.
However I think we should rather have this done generally for ";".
Quite possibly, but that requires more thought/effort and what we need right now is a quick fix to make the coastline work again so we will have to make do with my effort for the moment. When a better solution comes along, we can take out this code and it will have served its purpose. Mark

Steve Brophy wrote:
Hi,
Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with?
Regards,
Steve
I had noticed the same problem and overcame it by using --generate-sea:close-gaps=10000,no-mp (i.e. using a ridiculously high value for close-gaps) because I couldn't find an easy way of identifying the broken coastline segment. How did you find the segment tagged with cliff? Charlie

I draw the coastline also, and noticed a gap in mapsource when zooming in. Also, it is flagged by http://coastline.openstreetmap.nl/ Steve On 27 February 2010 14:35, Charlie Ferrero <charlie@cferrero.net> wrote:
Steve Brophy wrote:
Hi,
Someone has tagged part of the UK coastline with natural=coastline;cliff and this has broken --generate-sea=polygons,no-sea-sectors,close-gaps=1000. Is this valid syntax that mkgmap should cope with?
Regards,
Steve
I had noticed the same problem and overcame it by using --generate-sea:close-gaps=10000,no-mp (i.e. using a ridiculously high value for close-gaps) because I couldn't find an easy way of identifying the broken coastline segment. How did you find the segment tagged with cliff?
Charlie _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (4)
-
Charlie Ferrero
-
Felix Hartmann
-
Mark Burton
-
Steve Brophy