GeoServer in Tomcat doesn't get update shapefiles from PostGis - gis

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.

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.

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

Related

How to add a ArcGISMapServer to QGIS in QGIS 3.20.2

I am trying to add a ArcGISMapServer connection to my QGIS workspace in QGIS 3.20.2. The option for adding a this connection does not appear in the data source manager or in the add layers option. There is now only an option for adding an ArcGIS Rest Server:
QGIS 3.20.2 View
In previous versions there was an in built option for adding these connections:
Previous QGIS versions option
Is there a new method of adding in ArcGIS Map Server connections in more recent versions of QGIS?
In the Browser, you can find the "ArcGIS REST Servers" Option. Right click to add a server. Then you can
Then you can add a server name and the URL to access the layers. Provide authentication, if needed:
ArcGIS Map Server and ArcGIS Rest Server are the same thing. You can add your ArcGIS Server maps from new ArcGIS Rest Server section.

QGIS Server Postgis Connection - (WMS) 500 Internal Server Error

I am working on a map application and created a WMS layer using QGIS Server and postgis.
About a week ago, I opened the wms layer with the browser using the openlayers library. but for a few days. I am getting the error in the picture. I did not change the postgis passwords or anything, but the image does not come.
I didn't make any changes to the .qgs file either. I can't find what is causing the error. anybody can help me :)

How to upload a CSV file in a microservice deployed in cloud foundry

I am new to cloud foundry. I am currently working on a requirement where I have to upload a CSV file (via JSP UI) into a service deployed in cloud foundry and persists its data in service.
The issue is from UI, I only get a local path of that CSV file and when I am trying to parse that CSV via this path the file is not recognized. I guess the reason is service is already deployed in CF, so it does not recognize this local machine path.
Can you please let me know how can I parse this CSV file in local machine and where to parse this CSV.
Thanks in Advance!
There is nothing specific to Cloud Foundry about how you would receive an uploaded file in a web application. Since you mentioned using Java, I would suggest checking out this post.
How to upload files to server using JSP/Servlet?
The only thing you need to keep in mind that's specific to Cloud Foundry is that the filesystem in Cloud Foundry is ephemeral. It behaves like a normal filesystem and you can write files to it, however, the lifetime of the filesystem is equal to the lifetime of your application instance. That means restarts, restages or anything else that would cause the application container to be recreated will destroy the file system.
In short, you can use the file system for caching or temporary files but anything that you want to retain should be stored elsewhere.
https://docs.cloudfoundry.org/devguide/deploy-apps/prepare-to-deploy.html#filesystem

CKAN 2.0 - CSV/XLS files preview only with Dataproxy?

I have a problem with CKAN 2.0, just installed on a VirtualBox VM Ubuntu 12.04 64Bit.
I followed all steps of the official documentation but when I upload a file CSV into a dataset, the preview don't work because dataviewer use Dataproxy in place of Datastore.
My question is: CKAN 2.x uses only the dataproxy for prevew csv/xls files or I can use the datastore as in the previous versions? Reading here http://docs.ckan.org/en/ckan-2.0/data-viewer.html?highlight=datastore#viewing-structured-data-the-data-explorer is not clear if Datastore is used for all type of file or for all type except CSV/XLS.
Thank you! ;)
If you have the DataStore enabled and the data for that resource (data file) stored in the datastore then the datastore rather than the dataproxy will be used for the preview.
Think of the dataproxy as a fallback that kicks in if the DataStore is not enabled (or you have not stored that data file in the datastore).

load the mysql driver in android emulator

how to load the mysql server in android emulator
i.e
Class.forName("com.mysql.jdbc.Driver")
i got the exception java.land.ClassNotFoundException in com.mysql.jdbc.Drive
please reply me.
This assumes MySQL is publicly available from internet, but it is never good idea .
Setup public WebService and connect to it from mobile application.
You won't be able to run MySQL server on an Android device.
What you're doing, however, is trying to load the MySQL client library. That isn't included as part of Android so you cannot load it. You'd need to include the relevant JARs in your project, if you really do want to connect to a remote MySQL database from an Android app.
If you do want to store and access data on your Android device, the awesome SQLite database is included by default, including all the APIs you need to create, upgrade and otherwise interact with SQLite databases.
When I did this I created PHP files for the database operations. I sent data in XML and received data in XML all using PHP scripts. I found this to be the easiest way for me...but you need to know PHP of course.