Opened 13 years ago

Closed 12 years ago

#3892 closed defect (fixed)

PostGIS Raster driver: Error reading Arc/Info ASCII and Binary Grid files loaded in PostGIS Raster

Reported by: jorgearevalo Owned by: jorgearevalo
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.7.3
Severity: critical Keywords: postgis_raster aaigrid aig
Cc: jorge.arevalo@…, pcav

Description (last modified by jorgearevalo)

AAIGrid (ASCII): A user reported a problem. Nodata values are filled with zeros when trying to read a PostGIS Raster file with GDAL 1.7.3 released 2010/11/10 (OLD version of PostGIS Raster driver with that release).

AIG (Binary): Another user reported a different problem. When trying to execute gdal_translate (GDAL 1.7.2 from debian experimental, OLD version of PostGIS Raster driver with that release) over a .adf file loaded in PostGIS Raster, he got this error:

"ERROR 1: Can't get georeference coordinates from database (...) ERROR 1: Sorry, but couldn't create the structure to read the raster on memory, aborting."

Attachments (1)

gdal-1.7.2-wktraster.patch (739 bytes ) - added by jorgearevalo 13 years ago.
Little patch to fix wktraster driver

Download all attachments as: .zip

Change History (10)

comment:1 by jorgearevalo, 13 years ago

Description: modified (diff)

comment:2 by jorgearevalo, 13 years ago

Status: newassigned

comment:3 by pcav, 13 years ago

Cc: pcav added

by jorgearevalo, 13 years ago

Attachment: gdal-1.7.2-wktraster.patch added

Little patch to fix wktraster driver

comment:4 by jorgearevalo, 13 years ago

About the second bug (AIG one): The problem is the driver tries to read 2 fields of raster_columns table that have changed their names (pixelsize_x and pixelsize_y now are scale_x, scale_y). So, there are 2 possible solutions:

  • Recommended solution: Use a trunk GDAL version up to r20912 (new version of PostGIS Raster driver on that release)
  • Apply the change in the attached patch (gdal-1.7.2-wktraster.patch) to the original 1.7.2 sources

comment:5 by jorgearevalo, 13 years ago

About the first bug, doesn't happen with the new version of the driver (included in GDAL trunk on r20912).

comment:6 by jorgearevalo, 13 years ago

Milestone: 1.8.11.8.2

comment:7 by warmerdam, 12 years ago

Milestone: 1.8.2

removing milestone.

comment:8 by pracine, 12 years ago

Keywords: postgis_raster added

comment:9 by jorgearevalo, 12 years ago

Resolution: fixed
Status: assignedclosed

I can't reproduce this bug. I think it works with the changes suggested in comments. I close the ticket.

Note: See TracTickets for help on using tickets.