<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16576">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>like posted before, the rotation settings in Kml
tag:</FONT></DIV>
<DIV><FONT size=2 face=Arial><GroundOverlay></FONT></DIV>
<DIV><FONT size=2 face=Arial> <LatLonBox></FONT></DIV>
<DIV><FONT size=2 face=Arial>
<rotation>...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>does not have any effect, the image is not
rotated.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Because of this is made some modifications to
GeometryLayer.cpp :.</FONT></DIV><FONT size=2>
<P>createGraphicsItemFromOverlay( </FONT><FONT color=#0000ff size=2><FONT
color=#0000ff size=2>const</FONT></FONT><FONT size=2> GeoDataOverlay *overlay
)<BR>{<BR> <FONT color=#0000ff size=2><FONT color=#0000ff
size=2>if</FONT></FONT><FONT size=2> ( overlay->nodeType() ==
GeoDataTypes::GeoDataGroundOverlayType ) {<BR>
...<BR> <FONT size=2>//new<BR><FONT
size=2> GeoDataLatLonBox box =
groundOverlay->latLonBox();<BR> qreal rotation =
box.rotation(GeoDataCoordinates::Degree);<BR> <FONT
color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT
size=2>(rotation!=0)<BR> {<BR>
QString qsImg =
groundOverlay->absoluteIconFile();<BR>
QImage img(qsImg);<BR> <FONT color=#0000ff>
</FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff
size=2>if</FONT></FONT><FONT size=2>(!img.isNull())<BR>
{<BR>
QMatrix rm;<BR>
rm.rotate(rotation);<BR>
img = img.transformed(rm);<BR>
imageItem->setImage( img );<BR>
}<BR> }//new end<BR> item
= imageItem;<BR>}</P>
<DIV></FONT></FONT></FONT></FONT></FONT><FONT size=2><FONT
size=2>This works for me because all my images have same x/y
resolution.</FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=2>The image is now rotated like set in kml
file.<BR> </FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=2>But for other images (different x/y
resolution) , the GeoDataLatLonBox coordinates also have to be
rotated,</FONT></FONT></DIV>
<DIV><FONT size=2>i think,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>br, konrad</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>