[OpenLayers-Users] Openlayers with mapserv

James McManus jmpmcmanus at yahoo.com
Mon Aug 20 18:40:21 EDT 2007


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.  
>
> Regards,
>   
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

Jim



More information about the Users mailing list