Re: [mkgmap-dev] site relations

2016-10-10 Thread Dave Swarthout
Awesome! That did the trick.

I will try that next for my multipolygon lakes.

Many thanks Andrzej

On Mon, Oct 10, 2016 at 9:22 PM, Andrzej Popowski 
wrote:

> Hi Dave,
>
> your rule looks good except you should use curly brackets.
> '${..}' means tag from relation while '$(..)' is a tag from member of
> relation. Try for example:
>
> type=site & name=* {
>  apply {add name='${name}';}
> }
>
> Or you can concatenate site name with building name, if exist:
>
> type=site & name=* {
>  apply_once { set name='$(name) - ${name}' | '${name}'; }
>
> }
>
> --
> Best regards,
> Andrzej
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>



-- 
Dave Swarthout
Homer, Alaska
Chiang Mai, Thailand
Travel Blog at http://dswarthout.blogspot.com
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] site relations

2016-10-10 Thread Andrzej Popowski

Hi Dave,

your rule looks good except you should use curly brackets.
'${..}' means tag from relation while '$(..)' is a tag from member of 
relation. Try for example:


type=site & name=* {
 apply {add name='${name}';}
}

Or you can concatenate site name with building name, if exist:

type=site & name=* {
 apply_once { set name='$(name) - ${name}' | '${name}'; }
}

--
Best regards,
Andrzej
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] site relations

2016-10-10 Thread Dave Swarthout
Thanks, Andrzej,

I don't understand what you're saying. You're telling me to transfer the
name tag from my site relation to the objects it contains. But how do I
tell from within mkgmap what the objects are?

I added this line to my relation style file but nothing happened. The
members of this relation are buildings. How to apply the name to them?
Should I add some rules to the polygons style file?

type=site & name=* {
 apply {set name='$(name)';  }
}

On Mon, Oct 10, 2016 at 5:43 PM, Andrzej Popowski 
wrote:

> Hi Dave,
>
> you can transfer tags from a relation to its objects. Look for "apply"
> rule in style-manual.pdf .
>
> --
> Best regards,
> Andrzej
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>



-- 
Dave Swarthout
Homer, Alaska
Chiang Mai, Thailand
Travel Blog at http://dswarthout.blogspot.com
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] site relations

2016-10-10 Thread Andrzej Popowski

Hi Dave,

you can transfer tags from a relation to its objects. Look for "apply" 
rule in style-manual.pdf .


--
Best regards,
Andrzej
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev