<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
we are having problems saving/reading GCPs values in a VRT file when
those values are inf or nan. This problem is happening on Window
platform while it is working as expected in unix systems.<br>
<br>
We are setting the GCP values in a VRT dataset using the library
function <tt>GDALSetGCPs</tt>. The inf values get saved into the
VRT XML as "<tt><b>1.#INF00000000E+000</b></tt>" string<br>
<br>
<tt><GCPList Projection="PROJCS["unnamed",</tt><tt><br>
</tt><tt> GEOGCS["WGS 84",</tt><tt><br>
</tt><tt> DATUM["WGS_1984",</tt><tt><br>
</tt><tt> SPHEROID["WGS
84",6378137,298.257223563],</tt><tt><br>
</tt><tt> TOWGS84[0,0,0,0,0,0,0]],</tt><tt><br>
</tt><tt> PRIMEM["Greenwich",0],</tt><tt><br>
</tt><tt>
UNIT["degree",0.0174532925199433]],</tt><tt><br>
</tt><tt> PROJECTION["Orthographic"],</tt><tt><br>
</tt><tt>
PARAMETER["latitude_of_origin",71.331088221],</tt><tt><br>
</tt><tt>
PARAMETER["central_meridian",-156.63420306],</tt><tt><br>
</tt><tt> PARAMETER["false_easting",0],</tt><tt><br>
</tt><tt> PARAMETER["false_northing",0]]"></tt><tt><br>
</tt><tt> <GCP Id="0" Pixel="0.0000" Line="0.0000" X="<b>1.#INF00000000E+000</b>"
Y="<b>1.#INF00000000E+000</b>" /></tt><tt><br>
</tt><tt> <GCP Id="1" Pixel="363.0000" Line="0.0000"
X="-3.463981152302E+004" Y="3.246591123662E+004" /></tt><tt><br>
</tt><tt> <GCP Id="2" Pixel="725.0000" Line="0.0000"
X="-1.070555064325E+004" Y="1.097994383230E+004" /></tt><tt><br>
</tt><tt> <GCP Id="3" Pixel="1088.0000" Line="0.0000"
X="-5.461709489401E+003" Y="6.277974169290E+003" /></tt><tt><br>
</tt><tt> <GCP Id="4" Pixel="1450.0000" Line="0.0000"
X="-3.134437286904E+003" Y="4.191819043427E+003" /></tt><tt><br>
</tt><tt> </GCPList></tt><br>
<br>
when those values are read through the <tt>GDALGetGCPs</tt> library
function, then the inf values are set to 1.0.<br>
Is this a bug in GDAL or are we setting the inf GCP values in the
wrong way?<br>
<br>
Note that on unix everything works fine, the inf values are saved as
"INF" strings in the VRT XML and they are properly converted when
they are read back.<br>
<br>
Thanks in advance for your help.<br>
Calogero<br>
<pre class="moz-signature" cols="72">--
Calogero Mauceri
Software Engineer
Applied Coherent Technology Corporation (ACT)
<a class="moz-txt-link-abbreviated" href="http://www.actgate.com">www.actgate.com</a></pre>
</body>
</html>