Excellent Frank, thanks a lot, the SLD implementation is very impressive in Geoserver.
Jakob -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Frank Gasdorf Sent: Friday, March 30, 2012 2:27 PM To: Jakob Lanstorp Cc: [email protected] Subject: Re: [Geoserver-users] SLD Rotate a symbol basen on a expression with geom and a constant Hmm, just copied from the wrong editor, but here we go : <PointSymbolizer> <Geometry> <ogc:Function name="startPoint"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> </Geometry> <Graphic> <Mark> <WellKnownName>shape://oarrow</WellKnownName> <Fill/> <Stroke> <CssParameter name="stroke">#000000</CssParameter> </Stroke> </Mark> <Size>20</Size> <Rotation> <ogc:Add> <ogc:Function name="startAngle"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> <ogc:Literal>180.0</ogc:Literal> </ogc:Add> </Rotation> </Graphic> </PointSymbolizer> Hope that's what you expected ;) Frank see also : http://docs.geotools.org/stable/javadocs/org/opengis/filter/expression/Add.html 2012/3/30 Jakob Lanstorp <[email protected]> > > <Rotation> > > <ogc:Function name="startAngle"> > > <ogc:PropertyName>the_geom</ogc:PropertyName> > > </ogc:Function> > > </Rotation> ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
