Milton Jonathan ha scritto:
> 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.

All well known symbols are square. All other symbols available so far
are square. All the code that works with marks assumes they are square.

So, your suggestion is good, but all the "squareness" assumptions have
to be removed in all places where Marks are used.

Cheers
Andrea

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

------------------------------------------------------------------------------
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

Reply via email to