Opened 4 years ago

Closed 4 years ago

#400 closed defect (fixed)

Rasimport of data using unsigned int 32 bit is scrambled

Reported by: dirk.daems@… Owned by: dmisev
Priority: major Milestone: 8.5
Component: rasgeo Version: 8.4
Keywords: Cc:
Complexity: Medium

Description

I am having trouble importing GeoTiff raster images using type unsigned long 32 bit (see attached file qgis.png).

The GDAL type of my GeoTiff raster input file is UInt32:

Driver: GTiff/GeoTIFF
Files: WDPApol2010_africa.tiff
Size is 8961, 8961
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-20.000041591999974,40.002737650000057)
Pixel Size = (0.008927575000000,-0.008927575000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( -20.0000416,  40.0027377) ( 20d 0' 0.15"W, 40d 0' 9.86"N) Lower Left  ( -20.0000416, -39.9972619) ( 20d 0' 0.15"W, 39d59'50.14"S) Upper Right (  59.9999580,  40.0027377) ( 59d59'59.85"E, 40d 0' 9.86"N) Lower Right (  59.9999580, -39.9972619) ( 59d59'59.85"E, 39d59'50.14"S)
Center      (  19.9999582,   0.0027379) ( 19d59'59.85"E,  0d 0' 9.86"N)
Band 1 Block=8961x1 Type=UInt32, ColorInterp=Gray
  NoData Value=0

I import my coverage using rasimport:

rasimport -coll WDPA_Africa -t ULongImage:ULongSet -f WDPApol2010_africa.tiff

But when I look at the result of the import using a RASQL query in RView (se attached file rasdaman.png), the output is messed up. I get similar problems when extracting the image using RASQL/WCPS.
This doesn't happen with other input types: e.g. GDAL type UInt16 and image:collection type UShortImage:UShortSet.

Attachments (2)

qgis.png (18.4 KB) - added by dirk.daems@… 4 years ago.
rasdaman.png (34.1 KB) - added by dirk.daems@… 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by dirk.daems@…

Changed 4 years ago by dirk.daems@…

comment:1 Changed 4 years ago by dmisev

  • Owner changed from dmisev to aherzig
  • Status changed from new to assigned

comment:2 Changed 4 years ago by dmisev

  • Owner changed from aherzig to dmisev
  • Status changed from assigned to accepted

patch submitted

comment:3 Changed 4 years ago by dmisev

  • Milestone set to 8.5

comment:4 Changed 4 years ago by dmisev

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.