[mapserver-users] strange png output

Twan Kogels twan at twansoft.com
Thu Dec 27 02:16:06 PST 2001


Goodmorning,

Today i received new demo data, one part was a raster map. So i the utility 
"gdaltindex" to create a shape file for the tiles. Then i wrote a php 
script which displays the map. No problems at all, the map appears 
correctly, but when im zooming in the image (png) of the map gets very blury.

As a illustration i've uploaded a screenshot of the strange effect:
http://www.twansoft.com/bin/ie.jpg

After that i looked with paint shop pro to see if the raster map (tiled 
tiffs) are strange, but they look normal, another screenshot:
http://www.twansoft.com/bin/psp.jpg

A couple weeks ago i manage to display a raster map correctly, even when 
zooming in, and yet another screenshot to illustrate this:
http://www.twansoft.com/bin/paris.jpg

For reference i've included the .map file below:
========================================
#
# Start of map file
#
NAME ZOEKSTRAAT
STATUS ON
SIZE 600 600
SYMBOLSET symbols/symbols.sym
EXTENT 107999.25 552000.770075 131999.25 584000.750045
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255

#
# Start of web interface definition
#
WEB
   MINSCALE 1000
   MAXSCALE 155000
   IMAGEPATH "/usr/local/apache/htdocs/tmp/"
   IMAGEURL "/tmp/"
END

QUERYMAP
   SIZE 200 200
   STATUS ON
   STYLE HILITE
   COLOR 255 0 0
END

#
# Start of reference map
#
REFERENCE
   IMAGE graphics/reference.png
   EXTENT 107999.25 552000.770075 131999.25 584000.750045
   SIZE 120 160
   STATUS ON
   COLOR -1 -1 -1
   OUTLINECOLOR 255 0 0
END

#
# Start of legend
#
LEGEND
   KEYSIZE 18 12
   LABEL
     TYPE BITMAP
     SIZE MEDIUM
     COLOR 0 0 89
   END
   STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
   IMAGECOLOR 255 255 255
   LABEL
     COLOR 255 255 255
     SIZE tiny
   END
   STYLE 1
   SIZE 50 2
   COLOR 255 255 255
   UNITS MILES
   INTERVALS 1
   TRANSPARENT TRUE
   STATUS TRUE
END

#
# Start of layer definitions
#

LAYER
   NAME "texel"
   STATUS ON
   TILEINDEX "straten.shp"
   TILEITEM "Location"
   TYPE RASTER
END
===============================================

Last but not least i've uploaded a raw png (with the strange effect) that 
came directly from mapserver:
http://www.twansoft.com/bin/10094474998651.png

Can anybody give me a helpfull hand with this problem?

Thanks,
- twan

-- 
http://www.twansoft.com 




More information about the MapServer-users mailing list