Hello,

I am new in the goetool developer community, but are geotools user since 
long time.

I found a solution for the Jira Task number GEOS-6698. The geotools 
library gt-render-11.x definately do not rotate symbols around their 
center.

Before I make a pull request I wanted to know whether another solution is 
currently prepared.

My idea is to replace the line  "markAT.rotate(icoStyle.getRotation());" 
by the following line 

"markAT.rotate(icoStyle.getRotation(), icon.getIconWidth() / 2.0, 
icon.getIconHeight() / 2.0);"


in the public void paint(final Graphics2D graphics, final LiteShape2 
shape,
                                 final Style2D style, final double scale, 
boolean isLabelObstacle) method.

I already tried it and it works well. Do anybody have a suggestion?

Thanks in advance.



Mit freundlichen Grüßen / Kind regards 

Hervé Minko
Software Ingenieur / Software Engineer

Mettenmeier GmbH Utility Solutions
Klingenderstr. 10 - 14
33100 Paderborn, Germany

T    +49 5251 150-307
F    +49 5251 150-366
M   +49 173 2577871
E    herve.mi...@mettenmeier.de
I      www.mettenmeier.de

*********************************************************************************************
*

Mettenmeier GmbH
Sitz der Gesellschaft: 33100 Paderborn
Geschaeftsfuehrung: Ulrich Mettenmeier, Dirk Weidemann
Handelsregister: Amtsgericht Paderborn B 1114
USt.-ID: DE 811 324 124
Steuer-Nr.: 339/5873/3133


*********************************************************************************************
*
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to