Opened 11 years ago

Closed 11 years ago

#400 closed defect (fixed)

Rasimport of data using unsigned int 32 bit is scrambled

Reported by: Dirk Daems Owned by: Dimitar Misev
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 11 years ago.
rasdaman.png (34.1 KB ) - added by Dirk Daems 11 years ago.

Download all attachments as: .zip

Change History (6)

by Dirk Daems, 11 years ago

Attachment: qgis.png added

by Dirk Daems, 11 years ago

Attachment: rasdaman.png added

comment:1 by Dimitar Misev, 11 years ago

Owner: changed from Dimitar Misev to Alexander Herzig
Status: newassigned

comment:2 by Dimitar Misev, 11 years ago

Owner: changed from Alexander Herzig to Dimitar Misev
Status: assignedaccepted

patch submitted

comment:3 by Dimitar Misev, 11 years ago

Milestone: 8.5

comment:4 by Dimitar Misev, 11 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.