Hi Gerd,

 

type=route & route=mtb

{ apply mem_pos() = [first,x,last]

  {

    set ...

  }

}

 

Could do the job.

 

Andreas

Gesendet von Mail für Windows 10

 

Von: Gerd Petermann
Gesendet: Mittwoch, 21. November 2018 11:32
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)

 

Hi Andreas,

I still don't see where to handle this in mkgmap. A way can be the member of
several route relations.
It might be the start of one and the end of two others, or vice versa. When
the route describes a closed ring it would be start and end.
I don't want to handle those cases in the java code, this should be done in
the style.
So, maybe a style function mem_pos() could help? I could be used in a rule
like this
type=route & route=mtb
{ apply mem_pos() = 1
{
set ...
}
}

Or maybe the style function should return "first", "somewhere", "last" ?

Gerd



--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev