Requires python 3+
Fetch latest egg file from dist directory and run (e.g.) easy_install mapfile_utils-1.1.0-py2.7.egg
sudo python setup.py install
To run the tests use:
python -m unittest tests/test_map_to_xml.py
fix-map [-o|--outputfile outputfile] [-t|-w int] inputfile
WIDTH number of spaces to use in indenting XML
-t use tabs not spaces
upgrade a mapfile to work with MapServer 6.4+ by adding VALIDATION blocks.
map-to-xml [-h] [-o OUTPUTFILE] inputfile
converts a valid mapfile to XML.
xml-to-sld inputfile
convert a mapfile.xml to a dictionary of SLD elements indexed by layer name.
load-map file.map
converts a mapfile to JSON, really only useful as a test of correctness.
Any includes should be present in directory script is being run from. Can be empty files so touch will do.