地理服务器和外部网站托管
我已经设置了一个网页,该网页从在本地主机上运行的 geoserver 调用 wms,并使用 openlayers 作为前端。一切都运转良好。然而,下一步会导致一些问题。我的网站托管在另一家公司的外部服务器上。因此,当我上传网页时,它无法正常工作,有没有办法解决这个问题? 访问该网站
我只能通过ftp
I have set up a webpage that calls wms from geoserver operating on localhost and using openlayers as a front end. Everything works perfectly well. The next step, however, causes a few issues. My website is hosted on an external server by another company. Therefore, when i upload the webpage it will not work, is there a way to solve this issue? I only have access to the website through the ftp
cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该联系您的服务提供商并询问有关在公共网络服务器上运行 GeoServer 的问题。如果您无法在可访问 Internet 的地方运行 GeoServer,那么您的选择将受到严重限制。根据数据的复杂程度/规模,您可以考虑生成数据集的 GeoJSON 转储并使用 OpenLayers 的 < a href="http://docs.openlayers.org/library/feature_styling.html" rel="nofollow">矢量样式来执行客户端渲染。您可以从本地计算机上的 GeoServer 生成 GeoJSON,然后将其作为静态文件上传到托管提供商。 OpenLayers 允许您将此数据叠加到公开可用的图块集(例如 Google 地图或 OpenStreetMap)上。
You should contact your service provider and ask about running GeoServer on the public webserver. If you can't run GeoServer in an Internet-accessible place, then your options are severely limited. Depending on how complicated/large your data is, you could consider generating a GeoJSON dump of your data set and using OpenLayers' vector styling to perform the rendering client-side. You could generate GeoJSON from GeoServer on your local machine and then upload it as a static file to your hosting provider. OpenLayers would allow you to overlay this data on a publicly available tileset like Google Maps or OpenStreetMap.