[Gdal-dev] WCS Driver problem

Frank Warmerdam warmerdam at pobox.com
Mon Nov 20 20:32:25 EST 2006


Frédéric Trastour wrote:
>  http://laits.gmu.edu/cgi-bin/NWGISS/NWGISS?SERVICE=WCS&VERSION=1.0.0
> &REQUEST=GetCoverage&COVERAGE=/export/home0/GeoData/AIRDAS-CA-Fire-2003NOV/CEDAR_LINE1SCFM_UTM_3B_2.hdf:Grid:GeoTIFFGrid
> :G
> &FORMAT=GeoTIFF
> &BBOX=505516,3.64845e+006,505528,3.64847e+006
> &WIDTH=2&HEIGHT=2&CRS=EPSG:32611
> 
> It seems that the server fails to interpret the BBOX arguments when the 'scientific' notation is used.
> If I replace the concerned values 3.64845e+006 and 3.64847e+006 with the corresponding plain
> numbers, it works.
> 
> I don't know if the server should be able to interpret this notation...
> Perhaps you should envisage to used %f instead of %g in the related printf statements.

Frédéric,

I have updated the code to use %.15g which appears to give reasonable values
at different value sizes.  I don't like using something like %.15f because
it introduces many bogus digits of accurancy for coordinate systems with
large values like UTM.  But %.15g seems to mean 15 digits of accuracy rather
than 15 decimal places.

The GMU server is now working properly for me.

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list