We have a REST API you can use to configure geoserver, there is a python library "gsconfig" to help make these REST requests, but it unmaintained (although used by many applications).
For data access GeoServer supports a number of protocols - WFS is used to access vector data. There are some WFS python clients - for example: https://geopython.github.io/OWSLib/ Most python programers use ogr library wrapper though (and that is what I would recommend). Please note that the WFS protocol is not specific to geoserver, using a standard means your program will work with geoserver, mapserver, esri, etc... References: - https://pypi.org/project/gsconfig/ - https://geoserver.geo-solutions.it/edu/en/rest/python_gsconfig.html - https://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html -- Jody Garnett On Wed, 22 Jan 2020 at 19:22, Samann Long <[email protected]> wrote: > Hello, I am now having no idea how to retrieve data from PostGIS using > APIs and after I retrieve that data, I want to create it as layers and > register with WFS services and return its URL to frontend. > Is there any possible way to that with python APIs? > Thank you > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
