[Gdal-dev] xml file for accessing to a wcs server
Frank Warmerdam
warmerdam at pobox.com
Wed Apr 1 10:29:21 EDT 2009
salwa wrote:
> Hi Frank,
>
> this is my WCS service description file:
>
> -------------------------------------------------
>
> <WCS_GDAL>
> <ServiceURL>http://localhost:81/cgi-bin/mapserv.exe?map=NDVI.map&SERVICE=WCS&CRS=EPSG:26191&</ServiceURL>
> <CoverageName>NDVI</CoverageName>
> <supportedCRSs>EPSG:26191</supportedCRSs>
> <PreferredFormat>gtiff</PreferredFormat>
> <GetCoverageExtra>&BBOX=279728,114867,296168,125307&time=2002-11-07</GetCoverageExtra>
> <Version>1.0.0</Version>
> <BlockXSize>551</BlockXSize>
> <BlockYSize>351</BlockYSize>
> <BandCount>1</BandCount>
> <BandIdentifier>bands</BandIdentifier>
> <BandType>Byte</BandType>
> </WCS_GDAL>
Salwa,
Did you create all the entries in the WCS description file above yourself?
Or were some populated automatically by GDAL when it first fetched the
coverage description? If you manually set the <BandCount> to 1, but
the service is actually returning 3 band results you would get the error
you saw. From the mapfile it is hard to establish exactly what would
be returned for a GTiff format request. Since the service is local I can't
test from here.
It is also odd that you are overriding the BBOX in <GetCoverageExtra> and
the block size specified is pretty unusual.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list