[mapserver-users] Issues with Bilinear Rendering of Raster Images in MapServer 6.0.0-2

vanwars vanwars at gmail.com
Thu May 19 12:42:49 EDT 2011


Hello,

I just upgraded MapServer today on (Ubuntu Lucid Lynx) to 6.0.0-2 from
MapServer 5.6.6, and am experiencing a weird error with the bilinear
rendering from GeoTiff (the underlying data store) to PNG (the display
format).  Whereas before there were nice tapered edges and smoothing, there
is now a strange black / blue /green border around all of our pngs.  I read
through the upgrade documentation, and it seems like there have been a
number of changes to the way in which rasters are rendered, but I can't
figure out the element(s) that I might be able to adjust to get the rasters
to look fabulous again.  Has anyone run into this particular issue?  I've
attached before / after pngs.

Thank you!

Sarah

Relevant parts of my map config file
http://osgeo-org.1803224.n2.nabble.com/file/n6382806/MapServer5.6BilinearInterpolation.png
MapServer5.6BilinearInterpolation.png 
http://osgeo-org.1803224.n2.nabble.com/file/n6382806/MapServer6.0BilinearInterpolation.png
MapServer6.0BilinearInterpolation.png :

MAP
  ...
  IMAGETYPE aggpng24
  OUTPUTFORMAT
    NAME "aggpng24"
    DRIVER AGG/PNG
    MIMETYPE "image/png"
    IMAGEMODE RGBA
    TRANSPARENT ON
    EXTENSION "png"
  END
  ...
  LAYER
    NAME "snowpack"
    TYPE RASTER
    DUMP true
    OFFSITE 0 0 0
    DATA "/path_to_directory/the_geotiff.tif"
    EXTENT -124.625 31.875 -113 44
    METADATA
        "wms_title"    "snowpack"
        "gml_include_items" "all"
        "wms_include_items" "all"
    END
    STATUS OFF
    PROCESSING "BANDS=1,1,1"
    PROCESSING "RESAMPLE=BILINEAR"
    PROCESSING "SCALE=10,500"
    # Brighter purple gradient
    PROCESSING "LUT_1=1:249, 64:223, 128:200, 220:112, 255:112" #192:174
    PROCESSING "LUT_2=1:213, 64:184, 128:145, 220:12, 255:12" #192:108
    PROCESSING "LUT_3=1:242, 64:230, 128:220, 220:242, 255:242" #192:198
    PROJECTION
        "proj=longlat"
                "ellps=WGS84"
                "datum=WGS84"
                "no_defs"
    END
  END
  ...
END


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Issues-with-Bilinear-Rendering-of-Raster-Images-in-MapServer-6-0-0-2-tp6382806p6382806.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list