WMS server error. WMS request not enabled. Check wms/ows_enable_request settings
2011年12月19日
当debug脚本提示 WMS server error. WMS request not enabled. Check wms/ows_enable_request settings 的内容的时候需要修改 mapfile 文件,需要在 WEB METADATA 后增加 "wms_enable_request" "GetMap GetFeatureInfo"
如
WEB
IMAGEPATH "F:/mapfile/ms_tmp/"
IMAGEURL "/ms_img/"
METADATA
WMS_TITLE "china" WMS_ACCESSCONSTRAINTS "none"
WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv.exe"
WMS_SRS "EPSG:4236 EPSG:900913"
WMS_ENCODING "GBK"
[b] "wms_enable_request" "GetMap GetFeatureInfo"
[/b] END
END
2011年12月19日
当debug脚本提示 WMS server error. WMS request not enabled. Check wms/ows_enable_request settings 的内容的时候需要修改 mapfile 文件,需要在 WEB METADATA 后增加 "wms_enable_request" "GetMap GetFeatureInfo"
如
WEB
IMAGEPATH "F:/mapfile/ms_tmp/"
IMAGEURL "/ms_img/"
METADATA
WMS_TITLE "china" WMS_ACCESSCONSTRAINTS "none"
WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv.exe"
WMS_SRS "EPSG:4236 EPSG:900913"
WMS_ENCODING "GBK"
[b] "wms_enable_request" "GetMap GetFeatureInfo"
[/b] END
END
本文提供了解决WMS服务器错误的方法,包括如何修改mapfile文件中的关键配置项,如wms_enable_request和GetMapGetFeatureInfo,以确保WMS请求能够正常启用。
9346

被折叠的 条评论
为什么被折叠?



