[OpenLayers-Users] Openlayers with mapserv
crschmidt at metacarta.com
Mon Aug 20 18:51:30 EDT 2007
On Mon, Aug 20, 2007 at 06:40:21PM -0400, James McManus wrote:
> Christopher Schmidt wrote:
> >On Mon, Aug 20, 2007 at 06:13:52PM -0400, James McManus wrote:
> >>I made both those changes, but did not get an image. I had
> >>transparent:"true" which I got from an example. This seemed strange so I
> >>changed it to false. I now get the level selection menu and pink tiles,
> >>but no image. There are no errors in my error_log, but my access_log
> >>shows that I am issuing the mapserver command. However, I am not
> >>generating a png image in the cache (tmp) directory. If I use this
> >>mapfile outside of OpenLayers I produce a png, so permissions to that
> >>directory for apache is okay. Does OpenLayers use use IMAGEPATH in the
> >>mapfile to try and find the png image? It seems like an error message
> >>would be produced, say the image can not be found.
> >Right click on the pink image and 'view image' on it. It should be an
> >error message. See what it says.
> I got the error: msLoadMap(); Unable to access file. (/mapdata/MDI.map)
> I tried using different paths for the mapfile. The actual path
> /var/www/html/mapdata/MDI.map eliminated the above error, but produced
> the following error:
> msWMSLoadGetMapParams(); WMS server error.
> request layers
This is a mapserver problem. What version are you using? What does the
URL which generates this look like? I can't find an error message in
mapserver which seems to match this (though I'll admit I only spent
about 5 minutes looking at the code).
More information about the Users