我有一个名为“novo”的工作区。事实上,当我创建一个新工作区时,一切正常,我可以在openlayers上看到我的图层来自该工作区。问题是当我尝试在QGis上连接到我的wms服务器时似乎什么都不做,没有引发错误或警告。
我可以调用GetCapabilities请求,并且我可以查询所有图层,一切似乎都正常。
在geoserver日志中,我可以找到以下语句:
2016-04-20 11:38:38,380 INFO [org.geoserver.wms] -
Request: getCapabilities
UpdateSequence = null
Namespace = novo
Get = false
RawKvp = {SERVICE=WMS, REQUEST=GetCapabilities}
BaseUrl = http://10.194.32.192:80/geoserver/
RequestCharset = null
Version = 1.3.0
Request = GetCapabilities
2016-04-20 11:39:17,998 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:17,999 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
2016-04-20 11:39:18,005 DEBUG [org.geoserver.wms.capabilities] - Collecting summarized latlonbbox and common SRS...
2016-04-20 11:39:18,006 DEBUG [org.geoserver.wms.capabilities] - Summarized LatLonBBox is Env[0.0 : -1.0, 0.0 : -1.0]
2016-04-20 11:39:18,007 DEBUG [org.geoserver.config.impl] - Could not locate service of type interface org.geoserver.wms.WMSInfo in workspace WorkspaceInfoImpl[novo], available services were [WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WPSInfoImpl[WPS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS], WCSInfoImpl[My GeoServer WCS], WFSInfoImpl[My GeoServer WFS], WMSInfoImpl[My GeoServer WMS]]
这是“novo”工作区GetCapabilities:
<?xml version="1.0" encoding="UTF-8"?>
<WMS_Capabilities version="1.3.0" updateSequence="913" xmlns="http://www.opengis.net/wms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://10.194.32.192/geoserver/schemas/wms/1.3.0/capabilities_1_3_0.xsd">
<Service>
<Name>WMS</Name>
<Title>My GeoServer WMS</Title>
<Abstract>This is a description of your Web Map Server.</Abstract>
<KeywordList>
<Keyword>WFS</Keyword>
<Keyword>WMS</Keyword>
<Keyword>GEOSERVER</Keyword>
</KeywordList>
<OnlineResource xlink:type="simple" xlink:href="http://geoserver.sourceforge.net/html/index.php"/>
<ContactInformation>
<ContactPersonPrimary>
<ContactPerson/>
<ContactOrganization/>
</ContactPersonPrimary>
<ContactPosition/>
<ContactAddress>
<AddressType/>
<Address/>
<City/>
<StateOrProvince/>
<PostCode/>
<Country/>
</ContactAddress>
<ContactVoiceTelephone/>
<ContactFacsimileTelephone/>
<ContactElectronicMailAddress/>
</ContactInformation>
<Fees>NONE</Fees>
<AccessConstraints>NONE</AccessConstraints>
</Service>
<Capability>
<Request>
<GetCapabilities>
<Format>text/xml</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xlink:type="simple" xlink:href="http://10.194.32.192/geoserver/novo/ows?SERVICE=WMS&"/>
</Get>
<Post>
<OnlineResource xlink:type="simple" xlink:href="http://10.194.32.192/geoserver/novo/ows?SERVICE=WMS&"/>
</Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<Format>application/atom+xml</Format>
<Format>application/pdf</Format>
<Format>application/rss+xml</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kml+xml;mode=networklink</Format>
<Format>application/vnd.google-earth.kmz</Format>
<Format>image/geotiff</Format>
<Format>image/geotiff8</Format>
<Format>image/gif</Format>
<Format>image/jpeg</Format>
<Format>image/png; mode=8bit</Format>
<Format>image/svg+xml</Format>
<Format>image/tiff</Format>
<Format>image/tiff8</Format>
<Format>text/html; subtype=openlayers</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xlink:type="simple" xlink:href="http://10.194.32.192/geoserver/novo/ows?SERVICE=WMS&"/>
</Get>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/plain</Format>
<Format>application/vnd.ogc.gml</Format>
<Format>text/xml</Format>
<Format>application/vnd.ogc.gml/3.1.1</Format>
<Format>text/xml; subtype=gml/3.1.1</Format>
<Format>text/html</Format>
<Format>application/json</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xlink:type="simple" xlink:href="http://10.194.32.192/geoserver/novo/ows?SERVICE=WMS&"/>
</Get>
</HTTP>
</DCPType>
</GetFeatureInfo>
</Request>
<Exception>
<Format>XML</Format>
<Format>INIMAGE</Format>
<Format>BLANK</Format>
</Exception>
<Layer>
<Title>My GeoServer WMS</Title>
<Abstract>This is a description of your Web Map Server.</Abstract>
<!--Limited list of EPSG projections:-->
<CRS>EPSG:4326</CRS>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-25.1745333333</westBoundLongitude>
<eastBoundLongitude>-12.198333333</eastBoundLongitude>
<southBoundLatitude>30.004965</southBoundLatitude>
<northBoundLatitude>37.93</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-25.1745333333" miny="30.004965" maxx="-12.198333333" maxy="37.93"/>
<Layer queryable="1" opaque="0">
<Name>ABC</Name>
<Title>ABC</Title>
<Abstract/>
<KeywordList>
<Keyword>ABC</Keyword>
<Keyword>features</Keyword>
</KeywordList>
<CRS>EPSG:4326</CRS>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-25.1745333333</westBoundLongitude>
<eastBoundLongitude>-12.198333333</eastBoundLongitude>
<southBoundLatitude>32.4790833333</southBoundLatitude>
<northBoundLatitude>37.93</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-25.1745333333" miny="32.4790833333" maxx="-12.198333333" maxy="37.93"/>
<BoundingBox CRS="EPSG:4326" minx="32.4790833333" miny="-25.1745333333" maxx="37.93" maxy="-12.198333333"/>
<Style>
<Name>point</Name>
<Title>Default Point</Title>
<Abstract>A sample style that draws a point</Abstract>
<LegendURL width="20" height="20">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://10.194.32.192/geoserver/novo/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=ABC"/>
</LegendURL>
</Style>
</Layer>
<Layer queryable="1" opaque="0">
<Name>doc1</Name>
<Title>doc1</Title>
<Abstract/>
<KeywordList>
<Keyword>features</Keyword>
<Keyword>doc1</Keyword>
</KeywordList>
<CRS>EPSG:4326</CRS>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-16.0555</westBoundLongitude>
<eastBoundLongitude>-15.85316667</eastBoundLongitude>
<southBoundLatitude>30.004965</southBoundLatitude>
<northBoundLatitude>30.164367</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-16.0555" miny="30.004965" maxx="-15.85316667" maxy="30.164367"/>
<BoundingBox CRS="EPSG:4326" minx="30.004965" miny="-16.0555" maxx="30.164367" maxy="-15.85316667"/>
<Style>
<Name>point</Name>
<Title>Default Point</Title>
<Abstract>A sample style that draws a point</Abstract>
<LegendURL width="20" height="20">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://10.194.32.192/geoserver/novo/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=doc1"/>
</LegendURL>
</Style>
</Layer>
</Layer>
</Capability>
</WMS_Capabilities>
我缺少什么? 很奇怪,因为这个问题似乎没有任何理由发生。