<pre style="margin: 0em;">So you are talking for something like this:<br><br>Example VRT file for data (just to show the geolocation metadata reference):<br><br><VRTDataset rasterXSize="2048" rasterYSize="964"><br>
<Metadata domain="GEOLOCATION"><br> <MDI key="X_DATASET">data.lon.vrt</MDI><br> <MDI key="X_BAND">1</MDI><br> <MDI key="Y_DATASET">data.lat.vrt</MDI><br>
<MDI key="Y_BAND">1</MDI><br> <MDI key="PIXEL_OFFSET">0</MDI><br> <MDI key="LINE_OFFSET">0</MDI><br> <MDI key="PIXEL_STEP">1</MDI><br>
<MDI key="LINE_STEP">1</MDI><br> </Metadata><br> <SRS> stuff goes here</SRS><br><br> <VRTRasterBand dataType="UInt16" band="1" subClass="VRTRawRasterBand"><br>
<ImageOffset>1500</ImageOffset><br> <PixelOffset>10</PixelOffset><br> <LineOffset>22180</LineOffset><br> <ByteOrder>LSB</ByteOrder><br> </VRTRasterBand><br>
</VRTDataset><br></pre><br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 10:34 AM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On 11-02-15 01:20 PM, Nikolaos Hatzopoulos wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
So we have three tables:<br>
one matrix for latitude values<br>
one matrix for longitude values<br>
one matrix for our data values<br>
<br>
all the matrix have the same dimensions<br>
<br>
how we can convert these three tables to geotif using gdal??<br>
</blockquote>
<br></div></div>
Mikos,<br>
<br>
This is a georeferencing method I refer to as "geolocation grids". It is<br>
not a supported organization in GeoTIFF so there is no way to produce<br>
a GeoTIFF with the above data where the meaning of the latitude and longitude<br>
values will be well understood.<br>
<br>
If you want to use the resulting geotiffs in non-GDAL applications I<br>
think you are best just turning each matrix into a separate TIFF file<br>
with appropriate file names to suggest the meaning to and end user.<br>
<br>
Another option is to just rectify the image data into a normal north<br>
up rectified grid and write that to GeoTIFF. Such an output would be<br>
easily exploited in any GeoTIFF reading application.<br>
<br>
It also is possible to use metadata to associate the latitude and longitude<br>
as geolocation grids within a GeoTIFF file in a way that some GDAL<br>
applications (like gdalwarp) could take advtange of. This requires setting<br>
up very specific metadata items to relate the data. The metadata required<br>
(for geotiff or other formats) is listed in RFC 4:<br>
<br>
<a href="http://trac.osgeo.org/gdal/wiki/rfc4_geolocate" target="_blank">http://trac.osgeo.org/gdal/wiki/rfc4_geolocate</a><br>
<br>
Best regards,<br>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>