[mapserver-dev] Raster Rendering bug on Mapserver-5.2+
Rupert de Guzman
rndguzmanjr at gmail.com
Thu Oct 16 00:39:23 EDT 2008
Dear folks,
1. I am experiencing black lines in my raster tiles when trying to
render GeoTIFF raster using the ff mapserver versions:
MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
MapServer version 5.3-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
2. But everything works fine using an older version (5.0.3)..
MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE
You can see the images from http://202.106.51.86/mapserverbug/
3. MapFile Configuration
NAME WMS_server
DEBUG 2
STATUS ON
SIZE 256 256
FONTSET "../fonts/fonts-lite.list"
CONFIG MS_ERRORFILE "stderr"
UNITS METERS
IMAGECOLOR 102 102 102
OUTPUTFORMAT
NAME 'AGG'
NAME 'IMAGE/PNG'
DRIVER AGG/PNG
IMAGEMODE RGB
extension "png"
mimetype "image/png"
TRANSPARENT OFF
FORMATOPTION "INTERLACE=OFF"
END
WEB
IMAGEPATH "/usr/local/apache2/htdocs/tmp/"
IMAGEURL "/tmp/"
TEMPLATE "base.html"
METADATA
"wms_title" "cybersoftbj"
"wms_onlineresource"
"http://127.0.0.1/cgi-bin/mapserv?map=/home/map/beijing/new/beijing_900913_satellite/beijing.map"
"wms_srs" "EPSG:4326"
END
LOG "/usr/local/apache2/logs/error.log"
END
PROJECTION
"init=epsg:900913"
END
LAYER
NAME 'satellite_bjg_21'
STATUS DEFAULT
GROUP 'satellite'
TYPE RASTER
DATA '/home/satellite/warped/bjg_21.tif'
PROJECTION
'init=epsg:900913'
END
END
END
#Map File
4. gdalinfo /home/satellite/warped/bjg_21.tif
[root at csbaiyunmap3 warped]# gdalinfo bjg_21.tif
Driver: GTiff/GeoTIFF
Files: bjg_21.tif
Size is 12688, 8736
Coordinate System is:
PROJCS["Google Maps Global Mercator",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.2572235630016,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (12948416.224934648722410,4856281.493895919062197)
Pixel Size = (0.617719812208006,-0.617719812208006)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left (12948416.225, 4856281.494) (116d19'3.37"E, 40d 7'22.56"N)
Lower Left (12948416.225, 4850885.094) (116d19'3.37"E, 40d 5'8.55"N)
Upper Right (12956253.854, 4856281.494) (116d23'16.83"E, 40d 7'22.56"N)
Lower Right (12956253.854, 4850885.094) (116d23'16.83"E, 40d 5'8.55"N)
Center (12952335.039, 4853583.294) (116d21'10.10"E, 40d 6'15.56"N)
Band 1 Block=12688x1 Type=Byte, ColorInterp=Red
Band 2 Block=12688x1 Type=Byte, ColorInterp=Green
Band 3 Block=12688x1 Type=Byte, ColorInterp=Blue
Regards,
Rupert
More information about the mapserver-dev
mailing list