【问题标题】:TileCache and MapServer layer type - how to specify MapServer URL?TileCache 和 MapServer 图层类型 - 如何指定 MapServer URL?
【发布时间】:2020-12-30 16:01:00
【问题描述】:

我正在尝试将 TileCache 包装到 Docker 容器中。但看起来没有办法指定地图服务器的 URL。 根据 TileCache 文档,我只能为 WMS 和其他图层指定“url”参数,但不能为“MapServer”(光栅图块)类型指定。我确实尝试使用'url'参数以防万一,但它不起作用。看起来它正在尝试从某个“内部”URL 获取图块并且正在超时。

下面是我的 TileCache 配置文件:

# Configuration for MC TileCache
[cache]
type=Disk
base=/path/to/cache

# States TEST
[layer_zp520201iach]
type=MapServer
url=https://myserver/cgi-bin/mapserv
layers=layer_zp520201iach
srs=epsg:900913
#bbox=-20037508.34 -20037508.34 20037508.34 20037508.34
spherical_mercator=true
mapfile=/path/to/mapfile/mapfile.map
metaTile=true
metaSize=5,5
metaBuffer=350

我错过了什么吗?真的没有办法为 MapServer 图层类型定义 MapServer URL 吗?

【问题讨论】:

标签: mapserver tilecache


【解决方案1】:

Tilecache 2.11 通过 Mapscript(而不是通过 TCP/IP)调用 Mapserver,因此(afaik)我必须将 Mapserver 和 Tilecache 保留在同一个 Docker 容器中。

【讨论】:

    猜你喜欢
    • 2015-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多