Closed mholthausen closed 3 years ago
Never mind. I just noticed the DRAFT
flag
Thanks @jansule! Even though it is still DRAFT, any advice is greatly appreciated!
Sorry for gatecrashing this ticket, but it might be something of interest. There are JSON schemas for all Mapfile elements at https://github.com/geographika/mappyfile/tree/master/mappyfile/schemas might be useful for validation. This schema will (at some point) be proposed as an official schema via an RFC for MapServer.
Sorry for gatecrashing this ticket, but it might be something of interest. There are JSON schemas for all Mapfile elements at https://github.com/geographika/mappyfile/tree/master/mappyfile/schemas might be useful for validation. This schema will (at some point) be proposed as an official schema via an RFC for MapServer.
Also might want to switch to a more advanced parsing step leveraging a proper grammar/schema than the current mediocre line based one.
Thanks for the reviews! When all uncertainties are solved, the changes can be merged.
Sorry for gatecrashing this ticket, but it might be something of interest. There are JSON schemas for all Mapfile elements at https://github.com/geographika/mappyfile/tree/master/mappyfile/schemas might be useful for validation. This schema will (at some point) be proposed as an official schema via an RFC for MapServer.
Also might want to switch to a more advanced parsing step leveraging a proper grammar/schema than the current mediocre line based one.
Sorry for gatecrashing this ticket, but it might be something of interest. There are JSON schemas for all Mapfile elements at https://github.com/geographika/mappyfile/tree/master/mappyfile/schemas might be useful for validation. This schema will (at some point) be proposed as an official schema via an RFC for MapServer.
Also might want to switch to a more advanced parsing step leveraging a proper grammar/schema than the current mediocre line based one.
That's a good consideration! A discussion should be continued on this in the Issues or GitHub Discussions. These changes exceed the requirements of this PR.
I am +1 on merging, and we should probably make dedicated issues out of:
Hey @mholthausen, @geographika & @b4l maybe you want to join the monthly meeting today? Than we can have a chat about this. Drop us an email at reports@geostyler.org, then you'll get invited
With this PR
DATA
block of a mapfile is removed, because it is irrelevant for the style and the content could lead to misinterpretation of the whole document,STYLE
blocks,MAXSCALEDENOM
/MINSCALEDENOM
value at the particular class will always be used, even if a different value is present at the layer,visibility
property set ifOUTLINECOLOR
is presenthaloColor
andhaloWidth
fromOUTLINECOLOR
andOUTLINEWIDTH
forLABEL
SYMBOLS
with the linked filename if SYMBOLS are defined within the Mapfile and not framed by aSYMBOLSET
lineObject
as a block which led to a wrong amount of blocks related toEND
keysI request a final review of the changes made here by this PR