Commit: r2050: Add option pois-to-area-placement to configure the placement of POIs created from areas

Version 2050 was commited by wanmil on 2011-10-19 19:56:55 +0100 (Wed, 19 Oct 2011) Add option pois-to-area-placement to configure the placement of POIs created from areas The options defines an ordered tag-value list to configure which node of a polygon tagged with one of the tags from the list is used as POI. This is an addition to the add-pois-to-area option.

Hi, I tested this (r2052) and found that pois-to-area-placement (in the arguments file) does not work like pois-to-area-placement="building=entrance;building=entrance;entrance=yes" So the default does not work. I tested with entrance=yes nodes. Chris

Hi Chris, Am Freitag 21 Oktober 2011, 08:59:04 schrieb Chris66:
Hi, I tested this (r2052) and found that pois-to-area-placement (in the arguments file) does not work like pois-to-area-placement="building=entrance;building=entrance;entrance=yes"
So the default does not work. I tested with entrance=yes nodes.
Chris
For lines within the argument file If you give : add-pois-to-areas pois-to-areas-placement or add-pois-to-areas pois-to-areas-placement= an empty tag list is used, so the pois are placed at the center. If you do not give the option pois-to-area-placement at al the default taglist is assumed, so (again in the argfile): add-pois-to-areas # no option here or add-pois-to-areas pois-to-areas-placement: entrance=main;entrance=yes;building=entrance or add-pois-to-areas pois-to-areas-placement=entrance=main;entrance=yes;building=entrance is the same or in your case: add-pois-to-areas pois-to-areas-placement: entrance=yes All given examples tested and work like expected. Did you add quotes from the command line (which prevent shell interpretation) to the argument file, or was the help text confusing? hope this helps Hasemann

Am 21.10.2011 12:01, schrieb Olaf Hasemann:
Did you add quotes from the command line (which prevent shell interpretation) to the argument file, or was the help text confusing?
Yes, maybe I misunderstood the help text: --pois-to-areas-placement[=taglist] A semicolon separated list of tag=value definitions. A POI is placed at the first node of the polygon tagged with the first tag/value pair. If none of the nodes are tagged with the first tag-value pair the first node tagged with the second tag-value pair is used and so on. If none of the tag-value pairs matches or the taglist is empty the center of the polygon is used. It is possible to define wildcards for tag values like entrance=*. Default: entrance=main;entrance=yes;building=entrance Which I interpreted in this (obviously wrong) sense : If the option is missing, POI is placed in the middle of the polygon If the option is set, POI is placed at a node which can be defined by the tag-list. If tag-list is missing, use default tag list So, as I learned now: The default is used if the pois-to-areas-placement option is completely missing. Chris
participants (3)
-
Chris66
-
Olaf Hasemann
-
svn commit