MapServer Shapefiles Not Displaying

المشرف العام

Administrator
طاقم الإدارة
I am current developing an GeoExt app which is up and running. Now I want to create maps then dump them in the app. I have been battling with mapServer for days now. Mapfile can generate raster type files without any hustle but i can not do the same with my shapefiles or any other file for that matter. What am I missing. Here is my mapfile code....

MAP IMAGETYPE PNG NAME "Mapfile" EXTENT 15.8278 -35.0547 52.2894 -21.929 SIZE 2000 1700 SHAPEPATH "/var/www/html/mapserver/mapfile" IMAGECOLOR 128 0 250

WEB Template "/var/www/html/mapserver/mapfile/tamplate.html" #Do not mind the spelling IMAGEPATH "/var/www/html/mapserver/outputs/" IMAGEURL "../mapserver/outputs/" METADATA "wms_title" "Moz_Floods_Before" #"wms_onlineresource" "http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/html/mapserver/mapfile/before.map&" "wms_enable_request" "*" "wms_srs" "EPSG:4326" END END LAYER NAME 'KML_File' #KML file is the shapefile DATA KML_Shape STATUS ON TYPE POLYGON PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" ENDENDEND

This can only display imagecolor..., I',m working on Linux



أكثر...
 
أعلى