Tomcat 中的 GeoServer 无法从 PostGis 获取更新 shapefile

发布于 2024-10-06 12:56:05 字数 300 浏览 12 评论 0原文

我有两个 GeoServers 在同一台机器 Ubuntu Server 9.04 上运行。 GeoServer V2.0.1 与 Jetty 一起运行,另一个 GeoServer V2.0.0 是 Tomcat。它们都使用相同的 PostGis 数据存储。

当我通过 Rest api 将新的 shapefile 发布到 Jetty 中的 GeoServer 时,Tomcat 中的 GeoServer 无法从 PostGis 获取更新 shapefile。

它可能有办法在配置或服务中告诉Tomcat中的GeoServer重新加载shapefile。

I have two GeoServers running in the same machine Ubuntu Server 9.04. GeoServer V2.0.1 is running with Jetty and another GeoServer V2.0.0 is Tomcat. Both of them are using the same PostGis datastore.

When I post new shapefile via Rest api to GeoServer in Jetty, The GeoServer in Tomcat doesn't get update shapefile from PostGis.

It may have the way to tell GeoServer in Tomcat in configuration or service to reload shapefile.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

始于初秋 2024-10-13 12:56:05

要解决此问题,只需将 GeoServer 重新安装到较新的版本 2.0.1 即 Tomcat。
看来GeoServer V2.0.0有这个bug。

To resolve this issue just reinstall GeoServer to the newer version 2.0.1 is Tomcat.
It seems GeoServer V2.0.0 has the bug.

用心笑 2024-10-13 12:56:05

将 shapefile 发布到 geoserver 是什么意思?我问这个问题是因为您在下一行中希望 postgis 使用这些新数据进行更新。

我的猜测是,在您的码头安装中,您没有指向 postgis 数据库,而是直接指向 shapefile。在 tomcat 安装中,您指向之前加载到数据库的 postgis 表。

我不熟悉通过 REST api 将 shapefile 加载到 geoserver 意味着什么,但是如果您应该从 PostGIS 中获取新数据,则此过程必须将数据加载到 postgis 中,可能会删除旧表并创建这个新表桌子。

同样,我的猜测是这种情况没有发生,您只是将 shapefile 上传到服务器,jetty 安装从该服务器读取 shape 文件。

只是一个猜测!

华泰
尼克拉斯

What do you mean by posting a shapefile to geoserver. I ask because you in the next line expects postgis to be updated with this new data.

My guess is that in your jetty-installation you are not pointing to the postgis database, but directly to the shapefile. In the tomcat-installation you are pointing to the postgis table that you earlier has loaded to the database.

I am not familiar with what it means to load a shapefile via REST api to geoserver, but if you are supposed to get the new data out of PostGIS this process have to load the data into postgis, probably dropping the old table and creating this new table.

Again, my guess is that that is not happening, that you are just uploading the shapefile to the server, where the jetty-installation reads from the shape file.

Just a guess!

HTH
Nicklas

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文