使用 GeoWebCache 层时 Geoserver GetFeatureInfo WMS 请求不起作用
在过去的几天里,我一直在尝试从 Geoserver 获取地图 GeoWebCache 图层,以在弹出事件中显示 GetFeatureInfo。当我使用 WMS 图层时,GetFeatureInfo 正在按要求工作。自从我开始使用 GeoWebCache 缓存我的图层以来,我无法 GetFeatureInfo。到目前为止,我认为我应该代理我的 WMS 服务器,但说实话,我真的不知道该怎么做。如果有人知道任何事情或有建议,我将非常感激,并感谢您花时间帮助我。
埃尔谢
I have been trying for the last few days to get my map GeoWebCache layers from Geoserver to display GetFeatureInfo in a popup event. When I was using WMS layers, GetFeatureInfo was working as requested. Ever since I started caching my layers using GeoWebCache, I am unable to GetFeatureInfo. So far I think I am supposed to proxy my WMS server, but honestly I really have no idea what to do. IF anyone knows anything or has suggestions I'd really really appreciate it and thank you for taking your time to help me.
elshae
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我偶然发现了这里:
http://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfo#reply_2612983< /a>
原来我缺少的是
layerUrls: ["http://localhost:8080/geoserver/gwc/service/wms"]
这意味着:考虑layerUrls(即你的gwc url) ,但向 url(即您的 wms url)发出请求。
埃尔谢
Finally I have stumbled across here:
http://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfo#reply_2612983
Turns out what I was missing was
layerUrls: ["http://localhost:8080/geoserver/gwc/service/wms"]
This means: consider the layerUrls (i.e. your gwc urls), but issue requests to the url (i.e. your wms url).
elshae