<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello all,<br>
<br>
I'm using version GDAL_svn_trunk_2007_11_04 and the behaviour I'm
describing also happens in version 1.4.3. Using library OGR, class
OGRCoordinateTransformation functions Transform and TransformEx in
order to make coordinate transformations from latlon to utm29 for
coastline coordinates that include NaN values in order to detach
features like islands, the function is transforming the NaN values into
Inf values.<br>
The following output from a code before and after using the Transform
function:<br>
<br>
Coordinates before transformation in latlon and verification if the
coordinate is a nan value.<br>
x: -8.95006 &nbsp;&nbsp;&nbsp; y: 37 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0<br>
x: -8.95009 &nbsp;&nbsp;&nbsp; y: 37 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0<br>
<font color="#3333ff">x: -1.#IND &nbsp;&nbsp;&nbsp; y: -1.#IND &nbsp;&nbsp;&nbsp; 1 1</font><br>
x: -8.94716 &nbsp;&nbsp;&nbsp; y: 37 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0<br>
x: -8.94716 &nbsp;&nbsp;&nbsp; y: 37 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0<br>
<br>
Coordinates after transformation to UTM29 and verification if its a nan
values:<br>
x: 504444 &nbsp;&nbsp;&nbsp; y: 4.09488e+006 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0 <br>
x: 504441 &nbsp;&nbsp;&nbsp; y: 4.09487e+006 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0 <br>
<font color="#3333ff">x: 1.#INF &nbsp;&nbsp;&nbsp; y: 1.#INF &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0 </font><br>
x: 504702 &nbsp;&nbsp;&nbsp; y: 4.09487e+006 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0 <br>
x: 504702 &nbsp;&nbsp;&nbsp; y: 4.09488e+006 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0 0 <br>
<br>
Is this behaviour correct or is this a bug?<br>
<br>
Best Regards,<br>
<div class="moz-signature">-- <br>
<i><big>Miguel Fernandes<br>
</big></i><big><tt><b><br>
</b><small><b>Projecto ERSTA</b><br>
CIMA - Centro de Investiga&ccedil;&atilde;o Marinha Ambiental<br>
Campus de Gambelas<br>
8005-139 Faro<br>
Portugal</small><br>
<small><br>
+351 289800995 ext.7574<br>
<font color="#3333ff"><a class="moz-txt-link-abbreviated" href="mailto:mgfernandes@ualg.pt">mgfernandes@ualg.pt</a></font></small><br>
<br>
</tt></big></div>
</body>
</html>