<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY text=#000000 bgcolor=#ffffff>
<DIV id=idOWAReplyText99254>
<DIV><FONT face="Times New Roman" color=#000000 size=3>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>&nbsp;</DIV>
<DIV>Maybe you have misunderstood the&nbsp;extent of a layer and the extent of the view?</DIV>
<DIV>&nbsp;</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,&nbsp;at the same time,&nbsp;respects&nbsp;the width/height ratio of the screen, of course.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature16877>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_internacional-bounces@listserv.gva.es 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 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></DIV></BODY></HTML>