[mapserver-dev] Mapfile keywords questions

Seth G sethg at geographika.co.uk
Fri Jun 23 16:33:25 PDT 2017


Hi list,

I'm trying to get the definitive list of current Mapfile keywords and 
syntax for a Mapfile parser I'm working on 
(https://github.com/geographika/mappyfile).

I've gone through the MapServer docs, and also the sourcecode and have a 
few keywords that aren't documented and I'm not sure are still used. If 
anyone has any details on the list below it would be very useful. I can 
open issues if necessary and update docs.

RELATIVETO - mentioned in 
https://github.com/mapserver/mapserver/issues/1547 (from 2006) and is in 
the maplexer.l file. It is not in the test mapfile created when the 
issue was resolved 
(https://trac.osgeo.org/mapserver/attachment/ticket/1547/test_points.map). 
So it may never have been used?

COMPFILTER - http://www.mapserver.org/development/rfc/ms-rfc-113.html - 
not used? Looks interesting! Should be added to 
http://www.mapserver.org/mapfile/composite.html ?

GRATICULE - used to be a LAYER CONNECTION type, but now deprecated?

SCALETOKEN - should be in http://www.mapserver.org/mapfile/layer.html 
Documented in http://www.mapserver.org/output/kerneldensity.html

LATLON - in maplexer.l but not sure where this would be used in a Mapfile.

JAVASCRIPT - it is a token in maplexer.l, but not sure where this would 
be needed (javascript is in quotes as part of the GEOTRANSFORM options)

SCALE - again a token, but I can only find it as a LAYER processing 
option - PROCESSING "SCALE=AUTO"

INDEX - not sure what this keyword is for (and hard to search for..)

SIMPLE, TITLE, VALUES - all in maplexer.l but not in docs.

COLORRANGE and DATARANGE - should be added to the STYLE doc page - 
currently only documented at http://mapserver.org/output/kerneldensity.html

Some keywords only seem valid as part of Mapscript rather than a 
Mapfile: BANDSITEM, OVERLAYSYMBOL, EQUALS, MULTIPLE, SINGLE (I think the 
last 2 are PHP join types only?)

Also some non-quoted values also seem to be missing from the docs:

LINECAP - http://www.mapserver.org/mapfile/style.html?highlight=linecap 
- should TRIANGLE be a documented option? It is in maplexer.l and also 
mentioned at 
http://www.mapserver.org/mapfile/symbology/construction.html#sym-construction

Regards,

Seth


-- 
web: http://geographika.co.uk
twitter: @geographika



More information about the mapserver-dev mailing list