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 : [email protected]
[mailto:[email protected]] De la part de Kalbermatten
Michaël
Envoyé : jeudi, 12 mars 2015 10:12
À : [email protected]
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
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users