[mapserver-users] mapserver WMS

Sila Khan silasharmeen at gmail.com
Mon Jun 27 03:32:25 EDT 2011


i followed the same pattern of mapfile for accessing maps through wms
and when i start it in browser it gives Error like this
loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47)
when i modify the recommended line it goes to an other line with same Error
plz help me to rectify the Error




NAME "WMS-test"STATUS ONSIZE 400 300SYMBOLSET ../etc/symbols.symEXTENT
-2200000 -712631 3072800 3840000UNITS METERSSHAPEPATH
"../data"IMAGECOLOR 255 255 255FONTSET ../etc/fonts.txt
WEB
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
  METADATA
    "wms_title"     "WMS Demo Server"  ##required
    "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?"   ##required
    "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"  ##recommended
  ENDEND
PROJECTION
  "init=epsg:42304"   ##requiredEND
## Start of layer definitions#
LAYER
  NAME "park"
  METADATA
    "wms_title"    "Parks"   ##required
  END
  TYPE POLYGON
  STATUS OFF
  DATA park
  PROJECTION
    "init=epsg:42304"   ##recommended
  END
  CLASS
    NAME "Parks"
    STYLE
      COLOR 200 255 0
      OUTLINECOLOR 120 120 120
    END
  ENDEND # Layer
LAYER
  NAME popplace
  METADATA
    "wms_title"    "Cities"  ##required
  END
  TYPE POINT
  STATUS ON
  DATA popplace
  PROJECTION
    "init=epsg:42304"   ##recommended
  END
  CLASS
    NAME "Cities"
    STYLE
      SYMBOL 2
      SIZE 8
      COLOR 0 0 0
    END
  ENDEND # Layer
END # Map File
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110627/4c883a85/attachment.html


More information about the mapserver-users mailing list