我使用GeoTools(12.2) Wms模块获取一些wms信息。当我为不同的wms服务器测试我的应用程序时,遇到了一个问题。
Wms服务器网址:fag
功能url:fag?service=wms&request=getcapabilities
当我定义WebMapServer对象时,如下所示
wms =新WebMapServer(url);
得到了这个错误
下载位置错误:fag?service=WMS&version=1.3.0&request=GetSchemaExtension
这个不同的链接没有定义,它与我的完全不同,我在功能文档中看不到任何关于这个链接的记录。你对此有什么看法?我该怎么办?
谢谢
发布于 2015-03-17 09:14:12
如果您查看GetCapabilities响应的第一行
<WMS_Capabilities xmlns="http://www.opengis.net/wms"
xmlns:sld="http://www.opengis.net/sld"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ms="http://mapserver.gis.umn.edu/mapserver" version="1.3.0"
xsi:schemaLocation="http://www.opengis.net/wms
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd
http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd
http://mapserver.gis.umn.edu/mapserver
http://dbriap006/cgi-bin/stedsnavn_fag?service=WMS&version=1.3.0&request=GetSchemaExtension">您将看到服务器的所有者将此URL指定为模式位置,因此GeoTools正在尝试下载可能对您不可见的模式。我想你需要和服务器的所有者谈谈。
https://stackoverflow.com/questions/29073622
复制相似问题