openstreetmap - GeoServer / GWC / WMTS Return (400) Bad Request for part of map
问题描述
我正在尝试使用 PostGIS + GeoServer 设置开放街道地图(OSM)
地图已导入 PostGIS。
GeoServer 已配置并与“预览图层组”一起正常工作。
但是当我尝试使用“平铺层”示例时,地图的某些平铺不会呈现。
调用 GeoServer 的 html 代码是由 GeoServer 自己生成的。
选择网格集后,所有缩放级别都可以。
WMTS GetCapabilities 的开始:
<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>GeoServer Web Map Tile Service</ows:Title>
<ows:Abstract>A compliant implementation of WMTS service.</ows:Abstract>
<ows:Keywords/>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
<ows:Fees>NONE</ows:Fees>
<ows:AccessConstraints>NONE</ows:AccessConstraints>
</ows:ServiceIdentification>
<ows:ServiceProvider>
<ows:ProviderName>http://geoserver.org</ows:ProviderName>
<ows:ServiceContact>
<ows:IndividualName>Claudius Ptolomaeus</ows:IndividualName>
<ows:PositionName>Chief Geographer</ows:PositionName>
<ows:ContactInfo>
<ows:Address>
<ows:City>Alexandria</ows:City>
<ows:Country>Egypt</ows:Country>
<ows:ElectronicMailAddress>claudius.ptolomaeus@gmail.com</ows:ElectronicMailAddress>
</ows:Address>
</ows:ContactInfo>
</ows:ServiceContact>
</ows:ServiceProvider>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://xxxxxx/geoserver/gwc/service/wmts?">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="GetTile">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="xxxxxx/geoserver/gwc/service/wmts?">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="GetFeatureInfo">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://xxxxxx/geoserver/gwc/service/wmts?">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>
<Contents>
<Layer>
<ows:Title>Pk50095</ows:Title>
<ows:Abstract>
Pk50095 is a raster file accompanied by a spatial data file.
</ows:Abstract>
<ows:WGS84BoundingBox>
<ows:LowerCorner>12.999446822650462 46.722110379286</ows:LowerCorner>
<ows:UpperCorner>13.308182612644663 46.91359611878293</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>nurc:Pk50095</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>raster</ows:Identifier>
<LegendURL format="image/png" xlink:href="http://xxxxxx/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=nurc%3APk50095" width="20" height="20"/>
</Style>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<InfoFormat>text/plain</InfoFormat>
<InfoFormat>application/vnd.ogc.gml</InfoFormat>
<InfoFormat>text/xml</InfoFormat>
<InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
<InfoFormat>text/xml</InfoFormat>
<InfoFormat>text/html</InfoFormat>
<InfoFormat>application/json</InfoFormat>
<TileMatrixSetLink>
<TileMatrixSet>EPSG:4326</TileMatrixSet>
<TileMatrixSetLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:0</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>0</MaxTileRow>
<MinTileCol>1</MinTileCol>
<MaxTileCol>1</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:1</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>0</MaxTileRow>
<MinTileCol>2</MinTileCol>
<MaxTileCol>2</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:2</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>0</MaxTileRow>
<MinTileCol>4</MinTileCol>
<MaxTileCol>4</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:3</TileMatrix>
<MinTileRow>1</MinTileRow>
<MaxTileRow>1</MaxTileRow>
<MinTileCol>8</MinTileCol>
<MaxTileCol>8</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:4</TileMatrix>
<MinTileRow>3</MinTileRow>
<MaxTileRow>3</MaxTileRow>
<MinTileCol>17</MinTileCol>
<MaxTileCol>17</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:5</TileMatrix>
<MinTileRow>7</MinTileRow>
<MaxTileRow>7</MaxTileRow>
<MinTileCol>34</MinTileCol>
<MaxTileCol>34</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>EPSG:4326:6</TileMatrix>
<MinTileRow>15</MinTileRow>
<MaxTileRow>15</MaxTileRow>
<MinTileCol>68</MinTileCol>
<MaxTileCol>68</MaxTileCol>
</TileMatrixLimits>
瓷砖请求:
WMTS 错误:
<ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geowebcache.org/schema/ows/1.1.0/owsExceptionReport.xsd">
<Exception exceptionCode="TileOutOfRange" locator="TILEROW">
<ExceptionText>Row 3 is out of range, min: 1 max:2</ExceptionText>
</Exception>
</ExceptionReport>
所以 GetCapabilities 说 Zoom 2 有 0 到 4 之间的图块但是当我查询 ROW 3 时,它说它有 min: 1 max:2。
解决方案
推荐阅读
- flutter - 我正在尝试通过单击按钮打开另一个活动,但它显示了一些错误
- c - 汇编程序消息:错误:尝试向后移动 .org
- c - 尝试使用两个指针在c中查找middel但程序崩溃链表
- active-directory - 在单个查询中以递归方式查找所有给定 SAM 帐户的 AD 组
- ios - 在 iOS 设备中,在 WebView 中打开内容时获取 _userSettingsForUser 移动
- qt - 如何将 QPushButton 设置为垂直增长?
- path - 不存在文件或目录:路径变量设置
- android - Android:BaseAdapter 重绘相同的数据
- python-3.x - 分析 Python 字节码
- qt - Qt5.9 Qml SPI接口实现