Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

kartverket/mapserverSldGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

mapserverSldGenerator

Examples of SLDs generated with this tool:

ABAS

Kartdata2

Usage:

./sldGen.py $mapfile [[ -f $sldFile || -fpl $outputDir ] -g ]

Script for mapserver generating SLD including complete FES filters based on mapfile.

Needs mapscript to run.

Loads mapfile and uses layer.generateSLD() from mapscript to write a temporary file. When it finds a Filter, it tries to generate a new Filter based on the classifications in the mapfile.

Highly recommend running xmllint to validate result:

xmllint --noout --schema http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd $sldfile

About

Script for mapserver generating SLD including complete filters based on mapfile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages