Re: [gdal-dev] lat lon matrix tables to geotif
On 11-02-16 01:48 AM, Nikolaos Hatzopoulos wrote: So you are talking for something like this: Example VRT file for data (just to show the geolocation metadata reference): VRTDataset rasterXSize=2048 rasterYSize=964 Metadata domain=GEOLOCATION MDI key=X_DATASETdata.lon.vrt/MDI MDI key=X_BAND1/MDI MDI key=Y_DATASETdata.lat.vrt/MDI MDI key=Y_BAND1/MDI MDI key=PIXEL_OFFSET0/MDI MDI key=LINE_OFFSET0/MDI MDI key=PIXEL_STEP1/MDI MDI key=LINE_STEP1/MDI /Metadata SRS stuff goes here/SRS VRTRasterBand dataType=UInt16 band=1 subClass=VRTRawRasterBand ImageOffset1500/ImageOffset PixelOffset10/PixelOffset LineOffset22180/LineOffset ByteOrderLSB/ByteOrder /VRTRasterBand /VRTDataset Nikolaos, Yes, metdata formatted as above though the VRTRasterBand is incomplete. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] lat lon matrix tables to geotif
So we have three tables: one matrix for latitude values one matrix for longitude values one matrix for our data values all the matrix have the same dimensions how we can convert these three tables to geotif using gdal?? --Nikos Hatzopoulos ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] lat lon matrix tables to geotif
On 11-02-15 01:20 PM, Nikolaos Hatzopoulos wrote: So we have three tables: one matrix for latitude values one matrix for longitude values one matrix for our data values all the matrix have the same dimensions how we can convert these three tables to geotif using gdal?? Mikos, This is a georeferencing method I refer to as geolocation grids. It is not a supported organization in GeoTIFF so there is no way to produce a GeoTIFF with the above data where the meaning of the latitude and longitude values will be well understood. If you want to use the resulting geotiffs in non-GDAL applications I think you are best just turning each matrix into a separate TIFF file with appropriate file names to suggest the meaning to and end user. Another option is to just rectify the image data into a normal north up rectified grid and write that to GeoTIFF. Such an output would be easily exploited in any GeoTIFF reading application. It also is possible to use metadata to associate the latitude and longitude as geolocation grids within a GeoTIFF file in a way that some GDAL applications (like gdalwarp) could take advtange of. This requires setting up very specific metadata items to relate the data. The metadata required (for geotiff or other formats) is listed in RFC 4: http://trac.osgeo.org/gdal/wiki/rfc4_geolocate Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] lat lon matrix tables to geotif
So you are talking for something like this: Example VRT file for data (just to show the geolocation metadata reference): VRTDataset rasterXSize=2048 rasterYSize=964 Metadata domain=GEOLOCATION MDI key=X_DATASETdata.lon.vrt/MDI MDI key=X_BAND1/MDI MDI key=Y_DATASETdata.lat.vrt/MDI MDI key=Y_BAND1/MDI MDI key=PIXEL_OFFSET0/MDI MDI key=LINE_OFFSET0/MDI MDI key=PIXEL_STEP1/MDI MDI key=LINE_STEP1/MDI /Metadata SRS stuff goes here/SRS VRTRasterBand dataType=UInt16 band=1 subClass=VRTRawRasterBand ImageOffset1500/ImageOffset PixelOffset10/PixelOffset LineOffset22180/LineOffset ByteOrderLSB/ByteOrder /VRTRasterBand /VRTDataset On Tue, Feb 15, 2011 at 10:34 AM, Frank Warmerdam warmer...@pobox.comwrote: On 11-02-15 01:20 PM, Nikolaos Hatzopoulos wrote: So we have three tables: one matrix for latitude values one matrix for longitude values one matrix for our data values all the matrix have the same dimensions how we can convert these three tables to geotif using gdal?? Mikos, This is a georeferencing method I refer to as geolocation grids. It is not a supported organization in GeoTIFF so there is no way to produce a GeoTIFF with the above data where the meaning of the latitude and longitude values will be well understood. If you want to use the resulting geotiffs in non-GDAL applications I think you are best just turning each matrix into a separate TIFF file with appropriate file names to suggest the meaning to and end user. Another option is to just rectify the image data into a normal north up rectified grid and write that to GeoTIFF. Such an output would be easily exploited in any GeoTIFF reading application. It also is possible to use metadata to associate the latitude and longitude as geolocation grids within a GeoTIFF file in a way that some GDAL applications (like gdalwarp) could take advtange of. This requires setting up very specific metadata items to relate the data. The metadata required (for geotiff or other formats) is listed in RFC 4: http://trac.osgeo.org/gdal/wiki/rfc4_geolocate Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev