简体   繁体   English

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

[英]GeoServer in Tomcat doesn't get update shapefiles from PostGis

I have two GeoServers running in the same machine Ubuntu Server 9.04. 我有两个在同一台计算机Ubuntu Server 9.04上运行的GeoServer。 GeoServer V2.0.1 is running with Jetty and another GeoServer V2.0.0 is Tomcat. GeoServer V2.0.1与Jetty一起运行,而另一个GeoServer V2.0.0与Tomcat一起运行。 Both of them are using the same PostGis datastore. 他们两个都使用相同的PostGis数据存储。

When I post new shapefile via Rest api to GeoServer in Jetty, The GeoServer in Tomcat doesn't get update shapefile from PostGis. 当我通过Rest api将新的shapefile发布到Jetty中的GeoServer时,Tomcat中的GeoServer无法从PostGis获取更新shapefile。

It may have the way to tell GeoServer in Tomcat in configuration or service to reload shapefile. 它可能有办法告诉Tomcat中的GeoServer配置或服务重新加载shapefile。

To resolve this issue just reinstall GeoServer to the newer version 2.0.1 is Tomcat. 要解决此问题,只需将GeoServer重新安装到Tomcat 2.0.1的较新版本。 It seems GeoServer V2.0.0 has the bug. 似乎GeoServer V2.0.0具有该错误。

What do you mean by posting a shapefile to geoserver. 将shapefile发布到geoserver是什么意思。 I ask because you in the next line expects postgis to be updated with this new data. 我问是因为您在下一行中期望postgis会使用此新数据进行更新。

My guess is that in your jetty-installation you are not pointing to the postgis database, but directly to the shapefile. 我的猜测是,在您的码头安装中,您不是指向postgis数据库,而是直接指向shapefile。 In the tomcat-installation you are pointing to the postgis table that you earlier has loaded to the database. 在tomcat安装中,您指向您之前已加载到数据库的postgis表。

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. 我不熟悉通过REST api将shapefile加载到geoserver的含义,但是如果要从PostGIS中获取新数据,则此过程必须将数据加载到postgis中,可能会删除旧表并创建新表表。

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. 再次,我的猜测是这没有发生,您只是将shapefile上传到服务器,码头安装从中读取了shapefile。

Just a guess! 只是一个猜测!

HTH Nicklas HTH尼克拉斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM