[mapserver-users] mappyfile and mappyfile-colors Released

Seth G sethg at geographika.co.uk
Tue Feb 26 16:22:12 PST 2019


Hi list,

A couple of MapServer related updates that may be of interest. 
There is a new 0.8.x release of mappyfile - a Python library to parse, validate, and format Mapfiles: https://pypi.org/project/mappyfile/
Release notes are available at https://mappyfile.readthedocs.io/en/latest/#releases
The main new feature is adding Mapfile class names to their associated END blocks, e.g. 

  LAYER
    NAME "Polygon"
    TYPE POLYGON
    FEATURE
      POINTS
        30 10
        40 40
        20 40
        10 20
        30 10
      END # POINTS
    END # FEATURE
  END # LAYER
  
You can see this in action in the online demo at http://mappyfile.geographika.net/ by going to Settings > Add Closing Block Comments

There is also a new mappyfile plugin available - https://github.com/geographika/mappyfile-colors
This allows you to add colour names as comments to your Mapfile, and convert and harmonise colour formats (RGB or HEX), e.g. 

    COLOR 75 0 130
	
Can be converted to:

    COLOR "#4B0082" # indigo

Again this can be seen in the online demo at http://mappyfile.geographika.net/ - go to Settings > mappyfile-colors Plugin Settings
it is also available on PyPI at https://pypi.org/project/mappyfile-colors/ and can be installed using pip. 

Feedback and thoughts welcome,


Seth





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


More information about the mapserver-users mailing list