AW: [mapserver-users] Open Layers Problem

Arnd Wippermann arnd.wippermann at web.de
Sat Apr 28 18:14:21 EDT 2012


your server
http://173.236.45.118/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapasM
S.map
works also well with OpenLayers.
 
This should show your server with OpenLayers:
 
http://gis.ibbeck.de/olclient/OLClient.asp?WMC=./data/WMC/BiciMapasMS.wmc.xm
l
 
Perhaps you use not the right zoomlevel in OpenLayers to see anything. I
have to use zoomlevel 16 to see something.
 
by the way also you have corrected it, the mapfile path have to be a
filesystem path and not an url.
 
Arnd

  _____  

Von: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Alberto
Najera
Gesendet: Samstag, 28. April 2012 05:17
An: mapserver-users at lists.osgeo.org
Betreff: RE: [mapserver-users] Open Layers Problem


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/20120429/939cca7e/attachment-0001.html


More information about the mapserver-users mailing list