<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the explanation.<br>
<br>
As I said, the ImageExt values are correct...(y is calculated by _y
+ _h, I think) .....I have debugged the data flow and everything is
understandable up to this function (and afterwards. What the
function is doing might be clear, and even the values of the
viewRect, too,...after your little explanation, what should be
self-evident :-) <br>
<br>
However, the final lower/left edge of the picture is not shown at
53.475096504° where it should be, but somewhere at 53.464...and I
cannot find the code where this is calculated...(but better to say
that I have given up because of so many steps...)<br>
<br>
Best regards,<br>
<br>
Marcel<br>
<br>
<br>
Am 30.03.2011 09:32, schrieb Juan Lucas Dominguez Rubio:
<blockquote
cite="mid:E43C32BC5843E34FB4C00CDFAAAAF7D8017B5389@australia.prodevelop.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.17095" name="GENERATOR">
<div id="idOWAReplyText99254">
<div><font size="3" color="#000000" face="Times New Roman">Hello,</font></div>
<div>that method computes the extent of the view when you add
the first layer. The app knows the size of the screen and the
extent of the layer, and their ratios are different, so you
have to do a simple computation to find out the extent of the
new view.</div>
<div> </div>
<div>Maybe you have misunderstood the extent of a layer and the
extent of the view?</div>
<div> </div>
<div>When you add the first layer, the extent of the view is the
smallest rectangle which contains the extent of the layer
and, at the same time, respects the width/height ratio of the
screen, of course.</div>
<div> </div>
<div>Regards,</div>
<div><font size="2" face="Courier New"><font size="3"
face="Times New Roman">Juan Lucas Domínguez Rubio<br>
</font>---</font></div>
</div>
<div id="idSignature16877">
<div><font size="2" face="Courier New"><font size="2"
face="Courier New"><font size="2" face="Courier New">Prodevelop
SL, Valencia (España)</font></font></font></div>
<div>
<div><font size="2" face="Courier New"><font size="2"
face="Courier New"><font size="2" face="Courier New">Tlf.:
96.351.06.12 -- Fax: 96.351.09.68<br>
</font><a moz-do-not-send="true"
href="http://www.prodevelop.es/"><font size="2"
face="Courier New">http://www.prodevelop.es</font></a><br>
<font size="2" face="Courier New">---</font></font></font></div>
</div>
</div>
<div><br>
<hr>
<font size="2" face="Tahoma"><b>De:</b>
<a class="moz-txt-link-abbreviated" href="mailto:gvsig_internacional-bounces@listserv.gva.es">gvsig_internacional-bounces@listserv.gva.es</a> en nombre de
Marcel Schoolmeesters<br>
<b>Enviado el:</b> mar 29/03/2011 21:20<br>
<b>Para:</b> Users and Developers mailing list<br>
<b>Asunto:</b> Re: [Gvsig_english] Importing a raster image
with gvSIG Mobile<br>
</font><br>
</div>
<div>well, I think the main problem of understanding is in
function MapContext.<b>getExtentFromFullExtentAndImageSize</b>()
... I think the new height etc are calculated there? <br>
<br>
Am 29.03.2011 21:00, schrieb Marcel Schoolmeesters:
<blockquote>Hello, <br>
<br>
I have tried to load a raster image (had to try jpg, because
*.png did not even load), but I am getting a wrong position of
the extent. Anybody got the same error? <br>
<br>
I have tried the debug mode, but there are too many functions
to catch on. Perhaps anybody can help? <br>
<br>
Somewhere the map origin is changed from the upper edge to the
lower edge, that far I could follow, but then the image extent
(height) and the origin coords (of Y) has been changed. Why?
it seems to be very hard to understand the whole way of
building the image at the right place. <br>
<br>
However, in attachment the original rectangle and the changed
one are shown with their values while debugging... <br>
<br>
The lower edge of the final image is positioned between those
Y values (@ 53.464) but it needs to be positioned at
53.475.... <br>
<br>
what is getRasterTansformation() actually doing? <br>
<br>
<br>
Thanks in advance, if anybody can help. However, that issue
should be fixed, I think. The import of PNG is not even
possible, as I mentioned before.. <br>
<br>
Regards <br>
<br>
Marcel <br>
<pre><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Gvsig_internacional mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
</pre>
</blockquote>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Gvsig_internacional mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
<a class="moz-txt-link-freetext" href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
</pre>
</blockquote>
<br>
</body>
</html>