[maplab-users] wms server problems

joanne cook j.cook at oxfordarch.co.uk
Wed Dec 1 04:46:00 EST 2004


Hi List,
 
I am trying to set up a test wms server with one layer in it, and have tested it with GetCapabilities and GetMap directly in the address bar of my browser, and it seems to work. However, when I use MapBrowser and try to connect to the server I get two things happening: The first is that the Manage Servers window returns the following error:
 
Building server list....OK
The following errors occurred:
1) Parse returned 1
2) The output was:
3) An error occurred parsing capabilities.
4) Parse returned 1
5) The output was:
6) An error occurred parsing capabilities.
7) Parse returned 1
8) The output was:
9) An error occurred parsing capabilities.
10) Parse returned 1
11) The output was:
12) An error occurred parsing capabilities.
13) Parse returned 1
14) The output was:
15) An error occurred parsing capabilities.
*** Execution complete - Errors Occurred ***

The second is that my server name appears in the Data Store window but there is no drill-down button to select the layer. The url that I am using to connect is:
 
http://pc242-lancs/cgi-bin/mapserv.exe?map=C:/Program <http://pc242-lancs/cgi-bin/mapserv.exe?map=C:/Program>  Files/Apache Group/Apache2/htdocs/maplab-2.2/OS_Coverage/Sites3.map&
 
I attach my mapfile below
 
MAP
  NAME "WMS Demo"
  STATUS ON
  EXTENT -299000 0 999000 1300000 
  SIZE 400 400 
  SHAPEPATH "./data"
  SYMBOLSET "./symbols35.sym"
  FONTSET "./fonts/fonts.txt"
  IMAGETYPE JPEG
  IMAGECOLOR 255 255 255
  UNITS METERS
  DEBUG ON
  WEB
    IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/ms_tmp/"
    IMAGEURL "/tmp/ms_tmp/"
    TEMPLATE "map.html"
    LOG "C:/Program Files/Apache Group/Apache2/htdocs/tmp/mapserv.log"
    METADATA
      "WMS_SRS"    "EPSG:27700"
   "WMS_ONLINERESOURCE"    "http://pc242-lancs/cgi-bin/mapserv.exe?map=C:/Program <http://pc242-lancs/cgi-bin/mapserv.exe?map=C:/Program>  Files/Apache Group/Apache2/htdocs/maplab-2.2/OS_Coverage/Sites3.map&"
      "WMS_ABSTRACT"    "Locations of CAU/CAL events, as plotted in Carlisle Archives Project Stage One"
      "WMS_FORMAT"    "image/jpeg"
      "WMS_ACCESSCONSTRAINTS"    "none"
      "WMS_TITLE"    "CAU/CAL Trench Locations"
    END
  END
  PROJECTION
    "init=epsg:27700" 
  END
  LAYER
    NAME "CALtrenches"
    STATUS ON
    DATA "trenchlocfinal"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 1
    TOLERANCEUNITS PIXELS
    DEBUG ON
    METADATA
      "WMS_SRS"    "EPSG:27700"
      "WMS_TITLE"    "CALtrenches"
    END
    PROJECTION
      "init=epsg:27700" 
    END
    CLASS
      NAME "CALtrenches"
      STYLE
        SYMBOL 0
        COLOR 154 213 154
      END
    END
  END
END
 
Am I missing somthing very simple and obvious about creating wms maps?
 
Thanks in advance
 
Jo
-------------------------------------------
Joanne Cook
Oxford Archaeology North
-------------------------------------------



More information about the Maplab-users mailing list