[mapserver-users] mapserver WMS

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Jun 27 08:38:38 EDT 2011


That is the example mapfile from the docs...maybe you could include your 
small test mapfile.

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 11-06-27 4:32 AM, Sila Khan wrote:
> 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  ON
> SIZE  400  300
> SYMBOLSET  ../etc/symbols.sym
> EXTENT  -2200000  -712631  3072800  3840000
> UNITS  METERS
> SHAPEPATH  "../data"
> IMAGECOLOR  255  255  255
> FONTSET  ../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
>    END
> END
>
> PROJECTION
>    "init=epsg:42304"    ##required
> END
>
> #
> # 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
>    END
> END  # 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
>    END
> END  # Layer
>
> END  # Map File
>


More information about the mapserver-users mailing list