Fast-forward to a few days ago. I've installed mapserver 5.6.6 (from repos) onto an ubuntu 10.10 server. I copied the map files and data to the new server and when I attempt to render the map I find a number of peculiar behaviors.
1. When I request multiple layers to be rendered mapserver generates
an image file that is completely white, however I can successfully
render one layer at a time.
2. The rendered map appears to ignore all parameters in the URL
relating the SRS, BBOX, HEIGHT, and WIDTH
Some details: I am rendering the map through my browser as follows:
http://10.10.10.86/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450
Where 10.10.10.86 is my server (I will attach the map file for review).
When I make this exact call to my server running mapserver 5.0.3 it
renders it as I expect (see attached). When I make the same call to my
server running 5.6.6 I end up with a blank image. If I restrict the
LAYERS parameter to just 'county' or 'water' the layer renders. Also,
the size of the resulting image is not 450x450 as defined.
You will notice by the map file that I am referencing shapefiles now instead of my postgresql database. Please note that I get the same behavior with both shapefiles and the database. I will happily provide the shape files if necessary.
I have been banging my head against the wall on this for three days and I can't seem to catch a break. I would appreciate any suggestions. I'm also more than willing to provide additional information.
Cheers! Mark K. Zanfardino (zanberdo)
#
# Start of map file
#
MAP
NAME ccc
STATUS on
EXTENT -122.40 37.70 -121.50 38.05
SIZE 740 400
UNITS dd
SHAPEPATH "."
IMAGECOLOR 255 255 255
FONTSET "./fonts.list"
TEMPLATEPATTERN "example"
CONFIG "MS_ERRORFILE" "/var/log/mapserver.log"
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
FORMATOPTION "QUALITY=75"
IMAGEMODE RGB
EXTENSION "jpg"
END
#
# Projection definition, consult the PROJ.4 documentation for parameter
discussion
#
PROJECTION
"init=epsg:4326"
END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
IMAGEPATH '/data/tmp/'
IMAGEURL '/tmp/'
METADATA
WMS_TITLE "Contra Costa County Mapserver"
WMS_ABSTRACT "This is a UMN MapServer application for Contra Costa
County."
# WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?"
WMS_SRS "EPSG:4326"
END
END
#
# Start of LAYER DEFINITIONS ---------------------------------------------
#
LAYER
NAME county
DEBUG 3
DATA ccc_gis.county.shp
STATUS OFF
TYPE POLYGON
METADATA
WMS_TITLE "Contra Costa County"
WMS_ABSTRACT "County polygon for Contra Costa County."
WMS_SRS "EPSG:4326"
END
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "Countywide"
STYLE
OUTLINECOLOR 0 0 0
COLOR 242 239 233
END
END
END # County polygon layer ends here
#
# Start of LAYER DEFINITIONS ---------------------------------------------
#
LAYER
NAME water
DEBUG 3
DATA ccc_gis.water.shp
STATUS OFF
TYPE POLYGON
METADATA
WMS_TITLE "Contra Costa County"
WMS_ABSTRACT "County polygon for Contra Costa County."
WMS_SRS "EPSG:4326"
END
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "Bodies of Water"
STYLE
COLOR 155 177 205
END
END
END # Water polygon layer ends here
END
<<attachment: mapserv-5.0.3-image.png>>
<<attachment: mapserv-5.6.6-image.png>>
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
