problem with mark size
----------------------
Key: GEOT-3775
URL: https://jira.codehaus.org/browse/GEOT-3775
Project: GeoTools
Issue Type: Improvement
Reporter: Tobias Warneke
GeoTools only take into account the height of my dynamic mark and uses this
value to scale my dynamic mark to the wished size (MarkStyle2D.java line 82).
If I build a mark, lets say an horizontal arrow, where the basic shape size is
rectangular, e.g. length 1 and height 0.1, I got an arrow scaled by 10 but it
shouldn't be scaled. That is because shapeSize=0.1 and size=1, therefore
scale=10 in getTransformedShape.
It would be helpful to change the basic behaviour to max(height, length). That
would deliver a better result. Or is there any reason for the implementation. I
am not able to change my marks to a quadratic shape, because I could not use it
for fill patterns (distance in height would be to large) and to get the right
size, I would have to change my geobasis data.
public Shape getTransformedShape(float x, float y, float rotation) {
if (shape != null) {
Rectangle2D bounds = shape.getBounds2D();
>>>>>>>> double shapeSize = Math.max(bounds.getWidth(), bounds.getHeight());
double scale = size / shapeSize;
TransformedShape ts = new TransformedShape();
thanks
Tobias
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel