[mapserver-users] Open Layers Problem

Alberto Najera anajera at bicimapas.com.mx
Fri Apr 27 23:17:27 EDT 2012


Brent,
 
Thanks for testing it. The  "home/bicimapas/"  path is the webserver
directory tree. As a fact this same  test map works well using the Mapserver
templates as you can test with this link
 
http://173.236.45.118/bcmpms_i.html  which is the initialization page. Press
"Acceder" and you will be taken to the map. The question here is why can the
Mapserver template can access the file while OpenLayers does not.
 
Is there a reference document or tutorial on how to properly set up
OpenLayers to work with Mapserver? 
 
Alberto Najera
 
De: pcreso at pcreso.com [mailto:pcreso at pcreso.com] 
Enviado el: viernes, 27 de abril de 2012 07:26 p.m.
Para: mapserver-users at lists.osgeo.org; Alberto Najera
Asunto: RE: [mapserver-users] Open Layers Problem
 

Hi Alberto, 

I can get the capabilities document, & a list of available layers, using the
WMS facility in Quantum GIS, but when I try to access/load the layers as a
map the request fails:

"Response: <HTML> 
<HEAD><TITLE>MapServer Message</TITLE></HEAD>
<!-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<BODY BGCOLOR="#FFFFFF">
msLoadMap(): Unable to access file.
(http://173.236.45.118/home/bicimapas/mapdata/BiciMapasMS.map)
</BODY></HTML>"
 
I suggest that having your mapfile in your home directory tree rather than
your webserver's directory tree might be the problem.
 
You might also try tools like uDIG or QGIS to access the WMS service & debug
it before you try to get it working with OpenLayers.
 
Cheers,
 
   Brent Wood



 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120427/b5850e05/attachment-0001.html


More information about the mapserver-users mailing list