[mapserver-users] Inverted polygon shapeburst effect
Kalbermatten Michaël
Michael.Kalbermatten at ne.ch
Thu Mar 12 03:19:55 PDT 2015
Just an update... I found some kind of solution...
My polygon layer is a postgis layer, thus I just duplicated it in the mapfile, and added a st_translate on the geometry using an attribute of the table.
In this new layer, I defined a class having multiple geotransform style tags. Something like the code hereunder.
There is still some tuning to do and I don't know if that the best way to do it... but it might help other people
Michael
CLASS
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-20))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-19))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-18))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-17))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-16))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-15))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-14))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-13))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-12))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-11))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-10))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-9))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-8))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-7))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-6))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-5))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-4))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-3))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-2))
END
STYLE
OPACITY 5
COLOR 80 80 80
GEOMTRANSFORM (buffer([shape],-1))
END
END
De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Kalbermatten Michaël
Envoyé : jeudi, 12 mars 2015 10:12
À : mapserver-users at lists.osgeo.org
Objet : [mapserver-users] Inverted polygon shapeburst effect
Hi,
I am looking for a way to create a shapeburst effect (or outer glow) on the outer side of a polygon. This is something which has been added to QGIS (using the inverted polygon option, see http://planet.qgis.org/planet/tag/shapeburst/)
I was wondering if something like that was possible in MapServer ?
I took a look at the doc but could not find anything relevant (maybe using geotransform, but then, how do I create the glow...).
Does anyone have an advice ?
Thanks !
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150312/c76dc547/attachment.htm>
More information about the MapServer-users
mailing list