[gdal-dev] java Dataset.GetRasterBand(i).ComputeRasterMinMax not working for float data

Even Rouault even.rouault at spatialys.com
Sat Jan 28 03:45:15 PST 2017


On vendredi 27 janvier 2017 12:43:11 CET mccorb wrote:
> Driver: GTiff/GeoTIFF
> Files: elevation.tif
> Size is 7195, 5531
> Coordinate System is:
> PROJCS["NAD_1983_UTM_Zone_17N",
>     GEOGCS["NAD83",
>         DATUM["North_American_Datum_1983",
>             SPHEROID["GRS 1980",6378137,298.2572221010002,
>                 AUTHORITY["EPSG","7019"]],
>             AUTHORITY["EPSG","6269"]],
>         PRIMEM["Greenwich",0],
>         UNIT["degree",0.0174532925199433],
>         AUTHORITY["EPSG","4269"]],
>     PROJECTION["Transverse_Mercator"],
>     PARAMETER["latitude_of_origin",0],
>     PARAMETER["central_meridian",-81],
>     PARAMETER["scale_factor",0.9996],
>     PARAMETER["false_easting",500000],
>     PARAMETER["false_northing",0],
>     UNIT["metre",1,
>         AUTHORITY["EPSG","9001"]],
>     AUTHORITY["EPSG","26917"]]
> Origin = (543011.291966574150000,4153822.939761789500000)
> Pixel Size = (28.143460884725201,-28.143460884725226)
> Metadata:
>   AREA_OR_POINT=Area
>   DataType=Generic
> Image Structure Metadata:
>   COMPRESSION=LZW
>   INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left  (  543011.292, 4153822.940) ( 80d30'47.51"W, 37d31'49.36"N)
> Lower Left  (  543011.292, 3998161.458) ( 80d31'19.22"W, 36d 7'37.88"N)
> Upper Right (  745503.493, 4153822.940) ( 78d13'22.19"W, 37d29'55.39"N)
> Lower Right (  745503.493, 3998161.458) ( 78d16'22.86"W, 36d 5'49.55"N)
> Center      (  644257.392, 4075992.199) ( 79d22'57.31"W, 36d49' 7.69"N)
> Band 1 Block=128x128 Type=Float32, ColorInterp=Gray
>     Computed Min/Max=-340282306073709650000000000000000000000.000,2282.341
>   NoData Value=-3.4028229999999999e+038
> 
> 

I've pushed a fix for that in
https://trac.osgeo.org/gdal/changeset/37229

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170128/c529941a/attachment-0001.html>


More information about the gdal-dev mailing list