0

我是 GeoServer 的新手,并试图弄清楚是否有一种简单的方法可以在地图图层顶部显示图像。

背景:在我的应用程序中,根据搜索条件,在地图上绘制了一些多边形。每个多边形都有一个存储在某处的相应图像(TIFF 格式)。当用户放大到某个缩放级别时,我想在地图顶部加载图像。

我知道这可以使用 openLayers 来完成,但由于我的图像是 TIFF 格式,(据我所知,openLayers 无法渲染 TIFF 图像)我必须先将它们转换为 .PNG,考虑到我有的图像。

因此,我想知道是否可以创建一个图像层,以在某个缩放级别检索某个多边形的图像。如果是这样,任何人都可以指出一个例子或给我一个关于这是否可能的想法。

我正在使用 spring 2.5、tomcat 5、java 1.6 和 geoserver 2.0

谢谢。

4

1 回答 1

0

GeoServer's styling language, SLD, supports using an image file to provide the fill texture when rendering polygons. If the number of polygons that you want to handle is small, you could just set up a style rule for each polygon with its own image URL for the fill. Otherwise, I'd recommend establishing a formulaic mapping from data attributes to image URLs, and using GeoServer's dynamic symbolizer feature to reference the images.

于 2010-05-23T00:41:27.857 回答