[Gdal-dev] HDF MODIS conversion to GeoTiff WGS-84 referenced format

mattia mattia.parigiani at gmail.com
Fri Apr 13 08:08:48 EDT 2007


Hey all, I really have great confusion on how to convert my HDF 4 images
which reside as multiple bands into a single HDF file to a GeoTiff
geo-referenced image. In reality, I need to convert the format into a single
latitude/longitude *WGS-84* referenced TIFF image..I need to do this and at
the same time obtain a .tfw file which specifies the top left corner
coordinates of the image's bounding box and the pixel resolution of the
image.

I've tried to run the gdalinfo command on one of my images.. The image name
is AMOD021KM20061229043102.hdf and when I run the command (under Ubuntu) I
get the following stack report (the subdatasets are at the bottom part):

//----------------------------------------------------------
---------------------START-LOG-----------------------------------------
----------------------------------------------------------

rasdaman at mattia-desktop:~/FTPCHINA$ gdalinfo AMOD021KM20061229043102.hdf
Driver: HDF4/Hierarchical Data Format Release 4
Size is 512, 512
Coordinate System is `'
Metadata:
  RANGEBEGINNINGDATE=2006-12-29
  RANGEBEGINNINGTIME=04:31:03.294926
  RANGEENDINGDATE=2006-12-29
  RANGEENDINGTIME=04:39:59.497042
  DAYNIGHTFLAG=Day
  GRINGPOINTLATITUDE.1=63.7264060974121, 57.638111114502, 28.4389171600342,
31.9011936187744
  GRINGPOINTLONGITUDE.1=82.2857818603516, 124.476379394531, 104.08544921875,
80.1825561523438
  AveragedBlackBodyTemperature=290.0164
  AveragedMirrorTemperature=279.3138
  AveragedFocalPlane1Temperature=270.8599
  AveragedFocalPlane2Temperature=271.0926
  AveragedFocalPlane3Temperature=83.34911
  AveragedFocalPlane4Temperature=83.01984
  QAPERCENTMISSINGDATA.1=0
  QAPERCENTMISSINGDATA.2=0
  QAPERCENTINTERPOLATEDDATA.1=0
  QAPERCENTINTERPOLATEDDATA.2=0
  QAPERCENTOUTOFBOUNDSDATA.1=33
  QAPERCENTOUTOFBOUNDSDATA.2=0
  EASTBOUNDINGCOORDINATE=124.476376001332
  WESTBOUNDINGCOORDINATE=80.1739148770052
  NORTHBOUNDINGCOORDINATE=63.75567496824
  SOUTHBOUNDINGCOORDINATE=28.2823508492026
  PGE_Version=3.0.0
  ASSOCIATEDPLATFORMSHORTNAME.1=Terra
  Satellite=Terra
  Number of Scans=363
  Number of Day mode scans=363
  Number of Night mode scans=0
  Incomplete Scans=3
  Max Earth View Frames=1354
  %Valid EV Observations=99.7291, 99.7291, 99.7291, 99.7291, 99.72901,
99.7291, 99.72907, 99.71925, 97.10823, 86.80626, 78.78944, 71.92345,
31.80874, 19.07113, 34.80765, 12.43985, 26.49936, 35.73066, 99.7291, 99.7291,
99.7291, 99.7291, 99.71949, 99.7291, 99.7291, 99.7291, 99.7291, 99.7291,
99.7291, 99.7291, 99.7291, 99.7291, 99.7291, 99.7291, 99.7291, 99.7291,
99.7291, 99.7291
  %Saturated EV Observations=0, 0, 0, 0, 0, 0, 0, 0.009847366, 2.564954,
12.81738, 20.93965, 27.80564, 67.92036, 80.65796, 64.92145, 87.28925,
73.22974, 63.99844, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0
  Post Processing Indicates Bad data=0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  Electronics Redundancy Vector=22405973, 1048
  Electronics Configuration Change=0, 0
  Reflective LUT Serial Number and Date of Last Change=R031t2003:04:08:08:55
  Emissive LUT Serial Number and Date of Last Change=E023t2003:04:08:08:55
  QA LUT Serial Number and Date of Last Change=Q019t2003:04:08:08:55
  Focal Plane Set Point State=0
  Doors and Screens Configuration=128
  Reflective Bands With Bad Data=1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1
  Emissive Bands With Bad Data=1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1
  Noise in Black Body Thermistors=2, 4, 2, 4, 2, 2, 1, 3, 1, 6, 1, 3
  Noise in Average BB Temperature=2
  Noise in LWIR FPA Temperature=147
  Noise in MWIR FPA Temperature=26
  Noise in Scan Mirror Thermistor #1=255
  Noise in Scan Mirror Thermistor #2=1
  Noise in Scan Mirror Thermistor Average=19
  Noise in Instrument Temperature=1
  Noise in Cavity Temperature=255
  Discontinuities in linear gain b1 across granule=0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0
  Noise in Temperature of NIR FPA=0
  Noise in Temperature of Vis FPA=0
  Dead Detector List=0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  Detector Quality Flag=32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 104, 104, 104, 109, 104,
104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
104, 104, 104, 104, 104, 104, 104, 100, 104, 104, 104, 104, 104, 96, 96,
104, 104, 104, 104, 104, 96, 104, 104, 104, 104, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 76, 72, 72, 72, 72, 72, 72, 72, 72,
72, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 68, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64
  Earth-Sun Distance=0.9836482
  Solar Irradiance on RSB Detectors over pi=511.46, 511.46, 511.46, 511.46,
511.46, 511.46, 511.46, 511.588, 511.62, 511.588, 511.588, 511.588, 511.556,
511.556, 511.556, 511.492, 511.492, 511.556, 511.588, 511.588, 511.588,
511.62, 511.62, 511.62, 511.62, 511.62, 511.556, 511.492, 511.46, 511.365,
511.301, 511.206, 511.11, 510.983, 510.824, 510.378, 509.614, 509.614,
509.614, 509.614, 315.763, 315.763, 315.763, 315.763, 315.763, 315.763,
315.763, 315.795, 315.795, 315.795, 315.795, 315.795, 315.795, 315.763,
315.795, 315.795, 315.795, 315.795, 315.795, 315.795, 315.795, 315.795,
315.795, 315.795, 315.795, 315.795, 315.763, 315.763, 315.763, 315.732,
315.732, 315.7, 315.763, 315.795, 315.859, 315.954, 316.082, 316.273,
316.273, 316.273, 664.599, 664.599, 664.599, 664.599, 664.631, 664.631,
664.631, 664.631, 664.663, 664.663, 664.631, 664.631, 664.599, 664.663,
664.599, 664.599, 664.567, 664.567, 664.567, 664.567, 593.934, 593.934,
593.934, 593.934, 593.966, 593.934, 593.934, 593.934, 593.934, 593.934,
593.934, 593.934, 593.934, 593.934, 593.934, 593.934, 593.966, 593.998,
593.998, 593.998, 150.974, 150.974, 150.974, 150.974, 150.974, 150.974,
151.006, 151.006, 151.006, 151.006, 151.006, 151.006, 151.006, 150.974,
151.006, 151.006, 150.974, 150.974, 150.974, 150.974, 76.458, 76.458, 76.458,
76.458, 76.458, 76.458, 76.458, 76.458, 76.4899, 76.4899, 76.4899, 76.4899,
76.4899, 76.4899, 76.458, 76.458, 76.458, 76.458, 76.458, 76.458, 28.7752,
28.7752, 28.7752, 28.7752, 28.7434, 28.7434, 28.7434, 28.7434, 28.7434,
28.7752, 28.7434, 28.7434, 28.7434, 28.7434, 28.7434, 28.7434, 28.7434,
28.7434, 28.7434, 28.7434, 555.228, 555.228, 555.164, 555.101, 555.164,
555.323, 555.642, 556.151, 556.756, 557.138, 606.094, 606.094, 606.094,
606.03, 605.935, 605.903, 605.935, 606.03, 605.903, 605.871, 630.572,
630.572, 630.572, 630.572, 630.572, 630.572, 630.604, 630.54, 630.54,
630.413, 599.728, 599.728, 599.728, 599.759, 599.759, 599.759, 599.759,
599.759, 599.791, 599.791, 602.242, 602.242, 602.306, 602.306, 602.306,
602.306, 602.306, 602.338, 602.401, 602.433, 492.807, 492.807, 492.712,
492.68, 492.648, 492.648, 492.712, 492.839, 493.094, 493.062, 492.807,
492.807, 492.712, 492.68, 492.648, 492.648, 492.712, 492.839, 493.094,
493.062, 480.075, 480.075, 480.075, 480.043, 480.043, 480.043, 480.043,
480.043, 480.043, 480.075, 480.075, 480.075, 480.075, 480.043, 480.043,
480.043, 480.043, 480.043, 480.043, 480.075, 412.084, 412.084, 412.116,
412.179, 412.179, 412.179, 412.211, 412.148, 412.148, 412.148, 309.684,
309.684, 309.684, 309.716, 309.684, 309.716, 309.716, 309.716, 309.747,
309.811, 297.556, 297.556, 297.556, 297.556, 297.556, 297.556, 297.556,
297.556, 297.556, 297.556, 278.107, 278.107, 278.107, 278.107, 278.107,
278.107, 278.107, 278.107, 278.107, 278.107, 277.948, 277.948, 277.948,
277.948, 277.948, 277.948, 277.948, 277.948, 277.948, 277.948, 116.151,
116.151, 116.151, 116.151, 116.151, 116.183, 116.183, 116.183, 116.183,
116.183
Subdatasets:
  SUBDATASET_1_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":0
  SUBDATASET_1_DESC=[15x3630x1354] EV_1KM_RefSB (16-bit unsigned integer)
  SUBDATASET_2_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":1
  SUBDATASET_2_DESC=[15x3630x1354] EV_1KM_RefSB_Uncert_Indexes (8-bit
unsigned integer)
  SUBDATASET_3_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":2
  SUBDATASET_3_DESC=[2x3630x1354] EV_250_Aggr1km_RefSB (16-bit unsigned
integer)
  SUBDATASET_4_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":3
  SUBDATASET_4_DESC=[2x3630x1354] EV_250_Aggr1km_RefSB_Uncert_Indexes (8-bit
unsigned integer)
  SUBDATASET_5_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":4
  SUBDATASET_5_DESC=[2x3630x1354] EV_250_Aggr1km_RefSB_Samples_Used (8-bit
unsigned integer)
  SUBDATASET_6_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":5
  SUBDATASET_6_DESC=[5x3630x1354] EV_500_Aggr1km_RefSB (16-bit unsigned
integer)
  SUBDATASET_7_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":6
  SUBDATASET_7_DESC=[5x3630x1354] EV_500_Aggr1km_RefSB_Uncert_Indexes (8-bit
unsigned integer)
  SUBDATASET_8_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":7
  SUBDATASET_8_DESC=[5x3630x1354] EV_500_Aggr1km_RefSB_Samples_Used (8-bit
unsigned integer)
  SUBDATASET_9_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":8
  SUBDATASET_9_DESC=[16x3630x1354] EV_1KM_Emissive (16-bit unsigned integer)
  SUBDATASET_10_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":9
  SUBDATASET_10_DESC=[16x3630x1354] EV_1KM_Emissive_Uncert_Indexes (8-bit
unsigned integer)
  SUBDATASET_11_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":10
  SUBDATASET_11_DESC=[726x271] Latitude (32-bit floating-point)
  SUBDATASET_12_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":11
  SUBDATASET_12_DESC=[726x271] Longitude (32-bit floating-point)
  SUBDATASET_13_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":12
  SUBDATASET_13_DESC=[726x271] Height (16-bit integer)
  SUBDATASET_14_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":13
  SUBDATASET_14_DESC=[726x271] SensorZenith (16-bit integer)
  SUBDATASET_15_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":14
  SUBDATASET_15_DESC=[726x271] SensorAzimuth (16-bit integer)
  SUBDATASET_16_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":15
  SUBDATASET_16_DESC=[726x271] Range (16-bit unsigned integer)
  SUBDATASET_17_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":16
  SUBDATASET_17_DESC=[726x271] SolarZenith (16-bit integer)
  SUBDATASET_18_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":17
  SUBDATASET_18_DESC=[726x271] SolarAzimuth (16-bit integer)
  SUBDATASET_19_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":18
  SUBDATASET_19_DESC=[726x271] gflags (8-bit unsigned integer)
  SUBDATASET_20_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":19
  SUBDATASET_20_DESC=[3630x1354] EV_Band26 (16-bit unsigned integer)
  SUBDATASET_21_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":20
  SUBDATASET_21_DESC=[3630x1354] EV_Band26_Uncert_Indexes (8-bit unsigned
integer)
  SUBDATASET_22_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":21
  SUBDATASET_22_DESC=[16x10] Noise in Thermal Detectors (8-bit unsigned
integer)
  SUBDATASET_23_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":22
  SUBDATASET_23_DESC=[16x10] Change in relative responses of thermal
detectors (8-bit unsigned integer)
  SUBDATASET_24_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":23
  SUBDATASET_24_DESC=[363x16x10] DC Restore Change for Thermal Bands (8-bit
integer)
  SUBDATASET_25_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":24
  SUBDATASET_25_DESC=[363x2x40] DC Restore Change for Reflective 250m Bands
(8-bit integer)
  SUBDATASET_26_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":25
  SUBDATASET_26_DESC=[363x5x20] DC Restore Change for Reflective 500m Bands
(8-bit integer)
  SUBDATASET_27_NAME=HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":26
  SUBDATASET_27_DESC=[363x15x10] DC Restore Change for Reflective 1km Bands
(8-bit integer)
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  512.0)
Upper Right (  512.0,    0.0)
Lower Right (  512.0,  512.0)
Center      (  256.0,  256.0)

//----------------------------------------------------------
----------------END-LOG--------------------------
----------------------------------------------------------
-----------------------------

It looks like the subdatasets could be malformed... This is because I get
these SUBDATASET_X_NAME=HDF4_SDS:UNKNOWN: syntax.. is that right.. I've been
told that the images are MODIS images from Terra and Aqua satellites. I also
read that MODIS is used for snow detection only.. is this correct??

I'm trying to understand how to achieve what I need and so far I understand
that the required commands are the gdal_transform or the gdalwarp commands.

When I run gdal_translate on the file, I get the following:

rasdaman at mattia-desktop:~/FTPCHINA$ gdal_translate
AMOD021KM20061229043102.hdf test.tiff
Input file contains subdatasets. Please, select one of them for reading.
rasdaman at mattia-desktop:~/FTPCHINA$

Hence my question is, how do I tell the command to pick up a certain
dataset?? And, where can I find the relative documentation for this command
when applied to multiple HDF bands??

Finally, I reside in Germany and need to transform a whole lot of images
into GeoTiff to later establish a WMS service .. Hence all conversion will
need be done remotely... Does anyone have any suggestions on how I should go
on about this?? Should I be using the gdal library or would I best bet on
something else???
Msphinx?? ENVI??




-- 
Mattia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070413/f4ae6cda/attachment.html


More information about the Gdal-dev mailing list