[Geoserver-devel] Geometry transformations ready to roll

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)

line-buffer-one.png
line-buffer-two.png
line-start-end.png
polygon-shadow.png
polygon-vertices.png
linebuffer.sld (1.12 KB)
polyshadow.sld (1.66 KB)
polyvertices.sld (1.66 KB)
startEnd.sld (1.82 KB)

Andrea Aime ha scritto:

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.

Speaking of other stuff that can be done with transformations, what
do you think of the attached trick? :wink:

First the base is drawn, then an isometric extractions of the wall is
painted, and then a lighter rooftop is added using offset.
I've tried to use a single function but the root needs to be a different
color, so no go.
If I add the ability to specify an extrusion angle other than 90° I guess it will be better to have two functions, isometric_walls and
isometric_rooftop to extract the root without having to compute
the offset with trigonometric functions.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

(attachments)

flat.png
pseudo3d.png
isometric.sld (2.24 KB)

This is very very nice.

Congrat.

2009/11/30 Andrea Aime <aaime@anonymised.com>

Andrea Aime ha scritto:

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.

Speaking of other stuff that can be done with transformations, what
do you think of the attached trick? :wink:

First the base is drawn, then an isometric extractions of the wall is
painted, and then a lighter rooftop is added using offset.
I’ve tried to use a single function but the root needs to be a different
color, so no go.
If I add the ability to specify an extrusion angle other than 90° I guess it will be better to have two functions, isometric_walls and
isometric_rooftop to extract the root without having to compute
the offset with trigonometric functions.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july


Geotools-devel mailing list
Geotools-devel@anonymised.coms.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Francesco Izzi
CNR - IMAA
geoSDI - NSDI
Responsabile Sviluppo Software

C.da S. Loja
85050 Tito Scalo - POTENZA (PZ)
Italia

phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3402640314
mail: francesco.izzi@anonymised.com
skype: neofx8080

web: http://www.geosdi.org

Wow, this is really slick. I know users will be chomping at the bit to get their hands on this one.

Andrea Aime wrote:

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

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.