[mapserver-users] change kml style output

Dietmar Stolz dietmar.stolz at freenet.de
Wed Nov 12 04:28:55 PST 2014


Hi,

is it possible to change kml style output?
Mapserver writes only fix style information in the kml result file:

/<Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>/

It seems that the problem only occurs with wfs requests. wms request 
works fine.

MapServer version 6.4.1

    / OUTPUTFORMAT/
    /  NAME "kml"/
    /  DRIVER "OGR/KML" # wms without OGR/
    /  MIMETYPE "application/vnd.google-earth.kml+xml"/
    /  EXTENSION "kml"/
    /  FORMATOPTION "STORAGE=memory"/
    /  FORMATOPTION "FORM=simple"/
    / END/


    / LAYER/
    /  NAME "electricity"/
    /  TYPE LINE/
    /  DATA "electricity.shp"/
    /  METADATA/
    /   "ows_title" "electricity"/
    /   "ows_abstract" "electricity"/
    /   "ows_include_items" "all"/
    /   "OWS_SRS" "EPSG:25832"/
    /   "wfs_getfeature_formatlist" "text/csv,gml,geojson,xml,kml"/
    /  END/
    /  DUMP TRUE/
    /  TEMPLATE "../templates/void.html"/
    /  CLASS/
    /   STYLE/
    /    COLOR 0 255 0/
    /    OUTLINECOLOR 0 0 255/
    /    WIDTH 4/
    /   END/
    /  END/
    / END/

Thx,

Dietmar


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141112/e158db70/attachment.htm>


More information about the MapServer-users mailing list