GeoTools wms模块错误

时间:2015-03-16 09:43:05

标签: gis geotools wms

我正在使用GeoTools(12.2)Wms模块来获取一些wms信息。当我为不同的wms服务器测试我的应用程序时遇到了问题。

Wms服务器网址:http://wms.geonorge.no/skwms1/wms.stedsnavn_fag

功能网址:http://wms.geonorge.no/skwms1/wms.stedsnavn_fag?service=wms&request=getcapabilities

当我定义WebMapServer对象时如下

wms = new WebMapServer(url);

出现此错误

下载位置时出错:http://dbriap004/cgi-bin/stedsnavn_fag?service=WMS&version=1.3.0&request=GetSchemaExtension

这个不同的链接没有定义,它与我的完全不同,我在功能文档中看不到任何关于它的记录。你觉得怎么样?我该怎么办?

由于

1 个答案:

答案 0 :(得分:1)

如果你看一下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正在尝试下载可能对您不可见的架构。我想您需要与服务器的所有者交谈。