以XYZ格式投放GeoServer Tile [英] Serve GeoServer Tiles in XYZ format

查看:676
本文介绍了以XYZ格式投放GeoServer Tile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在服务器上使用GeoServer和种子图块.磁贴创建成功,但我不知道目录结构遵循的是哪种模式...(即.../EPSG_4326_05/0_0/00_06.png) 我想在OpenLayers应用程序中使用图块,并且我想在OSM源中使用XYZ模式,该模式通常用作图块服务的URL模式. 有没有办法告诉Geoserver应该使用XYZ结构创建图块?

I am using GeoServer and seed tiles on my server. The tiles are created successfully but i dont know which pattern the directory structure is following... (i.e. .../EPSG_4326_05/0_0/00_06.png) I want to use the tiles in a OpenLayers application and there i want to use a OSM source which is using the XYZ-pattern which is commonly used as URL pattern for tile-serving. Is there a way to tell the geoserver it should create the tiles with the XYZ structure?

推荐答案

这可能为时已晚,这是我的Geoserver图层的XYZ URL:

This may be too late by here is my XYZ URL for geoserver layer:

http://localhost/gwc/service/tms/1.0.0/gis:service@EPSG%3A900913@png/{z}/{x}/{-y}.png

Geoserver将根据您通过URL请求自动缓存切片.

Geoserver will cache the tiles automatically as you request through URL.

这篇关于以XYZ格式投放GeoServer Tile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆