Hi
I've started some initial documentation for this that will go into the
Style Manual.
The attached patch lists the options, but you might find it a bit
unreadable.
With the next auto-build after this is applied, the updated manual
appear in the branches download zip. @gerd: is this how it happens?
But the simple answer to your question is, for a rule in "lines" or
"polygons", what you have written will still work.
Ticker
On Tue, 2020-02-11 at 12:32 +0100, Arndt Röhrig wrote:
> Hi Gerd,
>
> is_in(landuse,residential,all)=true
>
> how do you write that now?
>
> Greets
> Arndt
>
> > Gerd Petermann < [email protected]> hat am 10.
> > Februar 2020 um 14:14 geschrieben:
> >
> >
> > Hi all,
> >
> > see http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev
> > =4442
> >
> > @Ticker:
> > I assume you are working on an alternative implementation of the
> > methods in IsInUtil?
> > If not I'd like to remove all the code duplication introduced with
> > the last patch.
> >
> > Gerd
> > _______________________________________________
> > mkgmap-dev mailing list
> > [email protected]
> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> [email protected]
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Index: doc/styles/rules.txt
===================================================================
--- doc/styles/rules.txt (revision 4443)
+++ doc/styles/rules.txt (working copy)
@@ -282,6 +282,23 @@
Retrieves the id of the OSM element. This can be useful for style debugging purposes. Note that due to internal changes like merging, cutting etc.
some element ids are changed and some have a faked id > 4611686018427387904.
+|is_in(tag,value,method) | x | x | |
++true+ if the element is in polygon(s) having the specified +tag+=+value+ according to the +method+, +false+ otherwise.
+The methods available depend to the Style section:
+"points":
+ +in+ - the Node is within a polygon.
+ +in_or_on+ - it is within or on the edge.
+ +on+ - it is on the edge.
+"lines":
+ +all+ - part of the Way is within the polygon(s), none is outside; it might touch an edge.
+ +all_in_or_on+ - none is outside. This is useful for the negative - is_in(...,all_in_or_on)=false - for processing a line that is outside the polgon(s).
+ +on+ - it runs along the edge.
+ +any+ - part is within.
+ +any_in_or_on+ - part is within or in the edge.
+"polygons":
+ +all+ - all of the closed Way is within the polygon(s).
+ +any" - some is within.
+
|====
The following rule matches for all service ways longer than 50m.
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev