[Geoserver-users] Python - automatic import of PostGIS tables into GeoServer

Hello everybody!

I want to enable the automatic upload/import of PostGIS tables (flood
polygons) to GeoServer and publish them as WMS. Those tables are updated
each day or week within a postgres DB.

I have to do this on a Windows machine.
How can I use the GeoServer REST API on Windows?
Is there a stable approach in Python?
Can someone help?

Thanx!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Python-automatic-import-of-PostGIS-tables-into-GeoServer-tp5159690.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

for example:

how can I embed such a command in Python (with subprocess.call?):

curl -v -u admin:geoserver -X POST -H "Content-type: text/xml" -d
"<featureType><name>lakes</name></featureType>"
http://localhost:8080/geoserver/rest/workspaces/opengeo/datastores/pgstore/featuretypes

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Python-automatic-import-of-PostGIS-tables-into-GeoServer-tp5159690p5159700.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
I am not a Python developer, but I think you can:

  • use one of the many http client libraries available for Python to directly call GeoServer API rest url endpoints
  • have a look at gsconfig.py (https://github.com/boundlessgeo/gsconfig/wiki) to see if it works in your use case

Regards,
Mauro

···

2014-09-02 18:08 GMT+02:00 Dimo <dimo.dimov@anonymised.com>:

for example:

how can I embed such a command in Python (with subprocess.call?):

curl -v -u admin:geoserver -X POST -H “Content-type: text/xml” -d
“lakes”
http://localhost:8080/geoserver/rest/workspaces/opengeo/datastores/pgstore/featuretypes


View this message in context: http://osgeo-org.1560.x6.nabble.com/Python-automatic-import-of-PostGIS-tables-into-GeoServer-tp5159690p5159700.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users