Index Contours Map Theme
I have 2 sets of contour layers, 1 every 20m, and another every 1m.
I've styled the 20m contours to create a heavier line weight for each 100m contour (so 100, 200, 300). All the other contours are a thinner weight. I did it using this post: https://support.avenza.com/hc/en-us/articles/360035256731-Advanced-Expression-Building-in-MAPublisher
Here is the formula I used for the 20m contour set:
Major Contours - REGEX( ELEVATION, "00$")
Minor Contours - REGEX( ELEVATION, "20|40$|60$|80$")
However, when I tried to use a similar expression for the one meter contours it styles all the contours the same. Here is the formula I used for the 1m contour set:
Major Contours (Every contour ending with 0 and 5) - REGEX(ELEV,"0$|5$")
Minor Contours (everything "else") - REGEX(ELEV, "1$|2$|3$|4$|6$|7$|8$|9$")
What am I doing wrong here?
*Note in the 20m file the field name is "ELEVATION", and in the 1m file the field name is "ELEV"
Perhaps more simply. Is there a simple expression for "else" in Mappublisher? It's automatically generated in QGIS, but I couldn't find anything that worked in Mappublisher.
Thanks,
Please sign in to leave a comment.
Comments
0 comments