On Tue, Jun 7, 2011 at 4:46 PM, Fernando Ribeiro <[email protected]> wrote: > Hi list, > Currently I'm testing old (long) SLD files, in order to short them up in > size/rules, using the new UOM support provided by GeoServer 2.1.x. > I am getting stuck with an old PointSymbolizer implementation, that's sets > graphic size dynamically. Apparently, GeoServer is not assuming this value, > and the size stays the same either I set it dynamic or fixed. > Here's a clip of the code: > <PointSymbolizer uom="http://www.opengeospatial.org/se/units/metre"> > <Graphic> > <Mark> > > <WellKnownName>ttf://OSP_B_01#${'U+0046'}</WellKnownName> > <Fill> > <CssParameter name="fill">#FFFFFF</CssParameter> > </Fill> > <Size> > <ogc:Mul> > <ogc:PropertyName>SCALE_FACTOR</ogc:PropertyName> > <ogc:Literal>3</ogc:Literal> > </ogc:Mul> > </Size> > </Mark> > <Rotation> > <ogc:PropertyName>ROTATION</ogc:PropertyName> > </Rotation> > </Graphic> > </PointSymbolizer> > > Is something wrong with the code?
The size should be specified in the Graphic, not in the mark. See for example: http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/points.html#code Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
