[gdal-dev] WCS driver, GetSubdatasets (Python) returns empty list

Even Rouault even.rouault at mines-paris.org
Sat Jun 25 18:25:52 EDT 2011


Le dimanche 26 juin 2011 00:03:55, Jachym Cepicky a écrit :
> Hi,
> 
> using Python, gdal 1.8.0, Ubuntu
> 
> I need to access some Temporal information about available WCS layer

Jachym,

Frank has added support for WCS temporal information in GDAL trunk just a few 
days ago. So it is not available in GDAL 1.8.0 (I've just updated the doc to 
mention that)

With a GDAL build from trunk, gdalinfo shows this :

Driver: WCS/OGC Web Coverage Service
Files: time.xml
Size is 645, 585
Coordinate System is:
PROJCS["GGRS87 / Greek Grid",
    GEOGCS["GGRS87",
        DATUM["Greek_Geodetic_Reference_System_1987",
            SPHEROID["GRS 1980",6378137,298.257222101,
                AUTHORITY["EPSG","7019"]],
            TOWGS84[-199.87,74.79,246.62,0,0,0,0],
            AUTHORITY["EPSG","6121"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4121"]],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",24],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    AUTHORITY["EPSG","2100"],
    AXIS["Easting",EAST],
    AXIS["Northing",NORTH]]
Origin = (409900.000000000000000,4503200.000000000000000)
Pixel Size = (20.000000000000000,-20.000000000000000)
Metadata:
  TIME_POSITION=2010-10-17T04:00:00.000Z
Subdatasets:
  SUBDATASET_1_NAME=WCS_SDS:time="2010-10-17T00:00:00.000Z",time.xml
  SUBDATASET_1_DESC=Coverage 20101012T210222_pig at time 
2010-10-17T00:00:00.000Z
  SUBDATASET_2_NAME=WCS_SDS:time="2010-10-17T01:00:00.000Z",time.xml
  SUBDATASET_2_DESC=Coverage 20101012T210222_pig at time 
2010-10-17T01:00:00.000Z
  SUBDATASET_3_NAME=WCS_SDS:time="2010-10-17T02:00:00.000Z",time.xml
  SUBDATASET_3_DESC=Coverage 20101012T210222_pig at time 
2010-10-17T02:00:00.000Z
  SUBDATASET_4_NAME=WCS_SDS:time="2010-10-17T03:00:00.000Z",time.xml
  SUBDATASET_4_DESC=Coverage 20101012T210222_pig at time 
2010-10-17T03:00:00.000Z
  SUBDATASET_5_NAME=WCS_SDS:time="2010-10-17T04:00:00.000Z",time.xml
  SUBDATASET_5_DESC=Coverage 20101012T210222_pig at time 
2010-10-17T04:00:00.000Z
Corner Coordinates:
Upper Left  (  409900.000, 4503200.000) ( 22d56' 2.07"E, 40d40'29.14"N)
Lower Left  (  409900.000, 4491500.000) ( 22d56' 8.10"E, 40d34' 9.76"N)
Upper Right (  422800.000, 4503200.000) ( 23d 5'11.49"E, 40d40'33.86"N)
Lower Right (  422800.000, 4491500.000) ( 23d 5'16.66"E, 40d34'14.45"N)
Center      (  416350.000, 4497350.000) ( 23d 0'39.58"E, 40d37'21.89"N)
Band 1 Block=645x585 Type=Float64, ColorInterp=Undefined

So your best luck is to checkout svn trunk and build by yourself ;-)

Best regards,

Even


More information about the gdal-dev mailing list