Ticket #2748 (closed defect: invalid)

Opened 5 years ago

Last modified 5 years ago

Corrupt image rendering

Reported by: mgleahy Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: 5.2
Severity: normal Keywords:
Cc:

Description

Processing of GeoTiff? images by mapserver seems to be corrupted on one of my systems. One or more values for a given pixel are set to zero for certain parts of the image output. I have tested this with two different layers of data. One is a layer of tiled GeoTiff? images with aerial photography (3-band rgb values), and another is a single GeoTiff? image of a dem (1-band floating point values).

I have been able to produce these errors with php mapscript and the cgi mapserv executable...I also randomly get incorrect results from raster queries (where one or more values for the queried pixel will be returned as zero).

The system I'm having this problem with is a laptop running Fedora 7-x86_64, with geos 3.0.0, proj 4.6.0, gdal 1.5.0 (or gdal 1.5.2, upgraded yesterday), and mapserver 5.2.0. I have a very similar setup on a server with the same geos/proj/gdal/mapserver versions, running on Fedora 8-x86_64, and it doesn't exhibit any of these image corruption issues. In addition to a more recent version of Fedora, the server also has multiple cores (my laptop has one), and twice the ram (though I eliminated available ram as the culprit when I upgraded it yesterday).

Attachments

corrupt.png Download (254.3 KB) - added by mgleahy 5 years ago.
Sample of corrupt output from tiled imagery.
corrupt3.png Download (31.0 KB) - added by mgleahy 5 years ago.
Sample of corrupt output from non-tiled single-band DEM GeoTiff? using cgi-bin mapserv

Change History

Changed 5 years ago by mgleahy

Sample of corrupt output from tiled imagery.

Changed 5 years ago by mgleahy

Sample of corrupt output from non-tiled single-band DEM GeoTiff? using cgi-bin mapserv

Changed 5 years ago by mgleahy

  • status changed from new to closed
  • resolution set to invalid

As I just posted on the mapserver-users list, this appears to be a problem with using geotiff images that were created by gdal with libgeotiff-1.2.4 on my server, while my laptop still had libgeotiff-1.2.3. After updating my laptop to libgeotiff-1.2.4 and recompiling gdal and mapserver, the output looks okay (as far as I can tell right now).

Note: See TracTickets for help on using tickets.