You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with this command, we indicate the file path of the raster we want to load, then we decide its layer name and the target workspace, and the file is uploaded in that workspace, with that layer name.
but when it comes to upload shape files in geoserver, it is more difficult:
we need 2 commands, one to create and one to publish the shape file
but before of that, we must manually load the .shp file into the database by using the wizard tool of postgis in postgres UI client (pgadmin).
this is a bottleneck, because it means that this process cannot be entirely automatized via python.
Would it be possible to extend the geoserver-rest library so that this step (manually load the .shp file into the database) is also managed via python?
I am willing to give my contribute to extend geoserver-rest and go past this issue.
The text was updated successfully, but these errors were encountered:
If I am understanding correctly, you want to start with a shapefile, then load it into a PostGIS database, and then publish the table in the database as a layer?
Loading a shapefile into a PostGIS database requires that you use a database connector, e.g. sqlalchemy. Geoserver-rest is an API client for interaction with Geoserver, so in my opinion, doing database manipulations is not within the scope of the library.
If you want to just upload and publish a shapefile directly, you should be able to do it with .create_shp_datastore
as far as I can understand, geoserver-rest gives us a simple way to upload raster files in geoserver :
with this command, we indicate the file path of the raster we want to load, then we decide its layer name and the target workspace, and the file is uploaded in that workspace, with that layer name.
but when it comes to upload shape files in geoserver, it is more difficult:
we need 2 commands, one to create and one to publish the shape file
but before of that, we must manually load the
.shp
file into the database by using the wizard tool of postgis in postgres UI client (pgadmin).this is a bottleneck, because it means that this process cannot be entirely automatized via python.
Would it be possible to extend the geoserver-rest library so that this step (manually load the
.shp
file into the database) is also managed via python?I am willing to give my contribute to extend geoserver-rest and go past this issue.
The text was updated successfully, but these errors were encountered: