[mapserver-users] Open Layers Problem
pcreso at pcreso.com
pcreso at pcreso.com
Fri Apr 27 20:26:11 EDT 2012
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:
<!-- 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 -->
msLoadMap(): Unable to access file. (http://184.108.40.206/home/bicimapas/mapdata/BiciMapasMS.map)
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.
--- On Sat, 4/28/12, Alberto Najera <anajera at bicimapas.com.mx> wrote:
From: Alberto Najera <anajera at bicimapas.com.mx>
Subject: RE: [mapserver-users] Open Layers Problem
To: mapserver-users at lists.osgeo.org
Date: Saturday, April 28, 2012, 11:25 AM
I used this
> and get this message
> msLoadMap(): Unable to access file. (BiciMapasMS.map)
> Why would the map file not be accessible to openlayers while Mapserver
> can access it? Is it a permissions or a path definition problem?
> Any hel os appreciated. Thanks
> Alberto Najera
> -----Mensaje original-----
> De: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Alberto
> Najera Enviado el: viernes, 27 de abril de 2012 01:19 p.m.
> Para: mapserver-users at lists.osgeo.org
> Asunto: [mapserver-users] Open Layers Problem
> We have a map that is rendered well using the Mapserver template and
> are trying to use it with OpenLayers but are experiencing some
> problems as the map does not show and I cannot find why.
> We are using a Linux Centos 5 remote server and the map file is
> located in home/bicimapas/mapdata/BiciMapasMS.map and the Mapserver
> CGI is located in /home/bicimapas/cgi-bin/mapserv. The IP address is
> On the map file we added this Metadata lines under the WEB section
> "wms_title" "BiciMapasMS"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users