Hello folks, From what I understood of the SLD specification, a given Graphic should be scaled so that its height corresponds to the Size specified, with the Graphic's aspect ratio being used to compute its width. In that sense, I think that a rectangular Graphic with size=20 that is twice as wide as tall should have height=20 and width=40.
However, from the code in MarkStyle2D.getTransformedShape(), the so called "shapeSize" is being defined as "max(width, height)", instead of simply being the height. In this case, the above example leads to a Graphic with height=10 and width=20. So, my question is: was this behavior implemented because you think that's the right thing to do, or is it simply there? Of course, for the vast majority of square shapes, it doesn't make a difference. To let you know: I am talking about this is because of a ShapeMarkFactory we're building which gives non-square shapes (e.g., defined like "customshape://rectangle?aspect=2.0"). When we tried to set the right Graphic size to get our desired result, we got a little confused. Thanks Milton -- Milton Jonathan Grupo GIS e Meio Ambiente Tecgraf/PUC-Rio Tel: +55-21-3527-2502 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
