[mapserver-users] [mapserver-dev] RFC113 Chainable Compositing Filters

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Oct 2 09:18:01 PDT 2015


Beautiful maps... How'd you do the inside shading on the water bodies? Can these be applied to labels? --Steve

-----Original Message-----
From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Friday, October 02, 2015 4:36 AM
To: MapServer Dev Mailing List <mapserver-dev at lists.osgeo.org>; MapserverList OSGEO <mapserver-users at lists.osgeo.org>
Subject: [mapserver-dev] RFC113 Chainable Compositing Filters

Hi All,

I have finished implementing the chainable compositing filters that
were architectured along with RFC113, and the code has been committed
to the master branch. The aim of the development is essentially to
enable soft shadow and blurring effects, although other usages can
exist or could be added in the future.
To obtain a soft shadow effect that can be seen for example around the
buildings on http://sitn.ne.ch/production/wsgi/mobile/?theme=mobile_default&baselayer_ref=plan_ville&map_x=554942.49763489&map_y=200242.9936142&map_zoom=6&tree_layers=
you can use

LAYER
 NAME "buildings"
 TYPE POLYGON
 COMPOSITE
  #create the shadow/blur effect by translating a blurred version of the layer
  COMPFILTER "grayscale()"
  COMPFILTER "translate(5,5)"
  COMPFILTER "blur(4)"
  OPACITY 50
 END
 COMPOSITE
  #and render the buildings themselves
  OPACITY 100
 END
 CLASS
  STYLE
    COLOR 128 128 128
    OUTLINECOLOR 0 0 0
    WIDTH 1
   END
  END
END

The currently available filters are:
- "blur(integer)"
- "translate(integer,integer)"
- "grayscale()"
- "blacken()"
- "whiten()"

I'll add some documentation and autotests next week.

best regards,
Thomas
_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev



More information about the MapServer-users mailing list