Hi, very likely there is a problem with your DATA declaration since, as far as I know you have to put the name of the coverage enclosed within quotes and complete with the extension like:
DATA 'popplace.shp' On the other side this MAP file looks wery "skinny". Here is an example of a MAP "template" I am using with my system for a vector coverage in SHP format: ###<<<START>>>6493f0c28e6856b_VL2 LAYER NAME '6493f0c28e6856b_VL2' TYPE LINE DATA 'absolute path to the location of the shape file like /usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/reg2010_s.shp' DUMP true HEADER 'this is optional and allows to return the results of an identify in html format but in order to have this you have to declare "'wms_feature_info_mime_type' 'text/html'" in the WEB METADATA section of the MAP part of the map file, that at the beginning of the file :/usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_header.html' TEMPLATE 'this MUST be filled with something also some gibberish like "templatestuff" or the absolute path to a real HTML file like: /usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_query.html' FOOTER 'applies the same comment of the HEADER token /usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_footer.html' EXTENT 313361.0014 3933878.5013 1312106.7514 5220491.2513 METADATA 'wfs_title' 'VL_2: Regioni' # this name is the name displayed in the WMS clients 'ows_title' 'VL_2: Regioni' 'ows_abstract' 'UserData:; ;__System___; Sector: Cartographic Background; Category: Administrative Boundaries; Table: District Limit; Date_from: 0000-00-00; Date_to: 0000-00-00; DataType: LINE' 'ows_srs' 'EPSG:4326' 'ows_include_items' 'all' 'ows_types' 'auto' 'gml_featureid' 'ID' # this stuff is for WFS queries and contains the list of the coverage fields that must be exported 'gml_include_items' 'all' 'gml_types' 'auto' 'gml_COD_REG_type' 'Integer' 'gml_NOME_REG_type' 'String' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=utm' 'ellps=WGS84' 'datum=WGS84' 'zone=32' 'north' 'units=m' 'no_defs' END # # In this field the user can insert the commands to display the map # accordingly with a classification based on the value of one or more fields # following the MAP Server syntax like in the following example: # # # CLASSITEM 'Code' # CLASS # NAME '1.000 < Code < 13.250' # EXPRESSION ( ([Code] >= 1.000) AND ([Code] <= 13.250) ) # STYLE # WIDTH 1 # OUTLINECOLOR 0 0 0 # COLOR 0 255 0 # END # END # CLASS # NAME '13.250 < Code < 25.500' # EXPRESSION ( ([Code] >= 13.250) AND ([Code] <= 25.500) ) # STYLE # WIDTH 1 # OUTLINECOLOR 0 0 0 # COLOR 0 191 64 # END # END # CLASS NAME 'VL_2: Regioni' TEXT ([NOME_REG]) STYLE WIDTH 1 OUTLINECOLOR 0 0 0 COLOR 127 127 127 END LABEL # the field used to display the label is declared in the TEXT token few lines before FONT 'arial' TYPE bitmap COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION auto SIZE tiny WRAP '@' END END END ###<<<END>>>6493f0c28e6856b_VL2 Hoping that this will be of some help. Cheers Marco Bagni On Mon, June 27, 2011 9: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 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users