Hi,
I think I'm ready to commit, at least on GeoTools trunk, the geometry
transformations subsystem discussed here:
http://docs.codehaus.org/display/GEOTOOLS/Geometry+transformations+in+SLD
(the current patch has been updated with some fixes and is more focused
than the one attached to the wiki page, ping me if you want to have a
look at it)
I wanted to share some maps that I've made using the transformations,
so I attached images and styles to this mail.
line-buffer-one.png and line-buffer-two.png show simple geometry buffering. If you look at the style you'll see the geometry has been
buffered by "200", which is meters since the data set was originally
in such unit. As you can see the operation works in real world units
and thus the buffer effect changes according to the current scale.
line-start-end.png shows the extraction of both start and end points
from a line, the start point depicted as a green square, the end point
as a red circle.
polygon-shadow.png shows using the offset function to drop shadows
behind a polygon.
polygon-vertices.png shows using the vertices function to extract the
vertices of a geometry as a multipoint, and then depict them
accordingly.
The are more things that can be done creatively using the
existing filter functions, and many more that can be done implementing
your own new functions, but I hope this shows the potential of this
new development.
I'll wait for some feedback before committing. Then I hope someone
other than me will play with transformations a little, and once
we're comfortable with it, we can discuss backporting to gt2 2.6.x
(and thus make the improvement available to GeoServer 2.0.x series
and uDig 1.2.x alike).
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
(attachments)
linebuffer.sld (1.12 KB)
polyshadow.sld (1.66 KB)
polyvertices.sld (1.66 KB)
startEnd.sld (1.82 KB)