Mapserver built in openlayers template doesn't display the shapefile that i want to d

المشرف العام

Administrator
طاقم الإدارة
This is my mapfile

MAP NAME "QGIS-MAP" SIZE 600 450 UNITS meters EXTENT 79.4571 5.92011 81.8442 9.8252 CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" DEBUG 5 PROJECTION 'proj=longlat' 'ellps=WGS84' 'no_defs' END# Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png"END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 ENDENDWEBTEMPLATE "ol.html"IMAGEPATH "C:/ms4w/Apache/htdocs/output/img"IMAGEURL "http://localhost/output/img"#WMS server settingsMETADATA 'wms_title' 'QGIS-MAP' 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapfilen.map&' 'wms_srs' 'EPSG:4326 EPSG:3857' 'wms_enable_request' 'GetCapabilities GetMap GetFeatureInfo'ENDENDLAYER NAME 'polygons' TYPE POLYGON STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=shapefile user=postgres password=12345 port=5432" DATA "geom from slpolygons using unique gid using srid=3" CLASS NAME 'natural' STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 119 172 92 END END END ENDAnd this is my html file

.map { height: 400px; width: 100%; } Country Map
Please let me know where I went wrong



أكثر...
 
أعلى