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? ;-) 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.
<<inline: flat.png>>
<<inline: pseudo3d.png>>
<?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> <NamedLayer> <Name>Grass</Name> <UserStyle> <FeatureTypeStyle> <Rule> <PolygonSymbolizer> <Fill> <CssParameter name="fill">0x00BB00</CssParameter> <CssParameter name="fill-opacity">0.1</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">0x0000FF</CssParameter> <CssParameter name="stroke-width">0.1</CssParameter> </Stroke> </PolygonSymbolizer> <PolygonSymbolizer> <Geometry> <ogc:Function name="isometric"> <ogc:PropertyName>geom</ogc:PropertyName> <ogc:Literal>2</ogc:Literal> </ogc:Function> </Geometry> <Fill> <CssParameter name="fill">0x00BB00</CssParameter> <CssParameter name="fill-opacity">0.1</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">0x0000FF</CssParameter> <CssParameter name="stroke-width">0.1</CssParameter> </Stroke> </PolygonSymbolizer> <PolygonSymbolizer> <Geometry> <ogc:Function name="offset"> <ogc:PropertyName>geom</ogc:PropertyName> <ogc:Literal>0</ogc:Literal> <ogc:Literal>2</ogc:Literal> </ogc:Function> </Geometry> <Fill> <CssParameter name="fill">0xAAFFAA</CssParameter> <CssParameter name="fill-opacity">0.6</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">0x0000FF</CssParameter> <CssParameter name="stroke-width">0.1</CssParameter> </Stroke> </PolygonSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor>
------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel