gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
195 stars 77 forks source link

shapefile path is absolute in create_shp_datastore (QUESTION) #72

Open MadaraPremawardhana opened 2 years ago

MadaraPremawardhana commented 2 years ago

When creating a shape datastore using create_shp_datastore() in the created store's shapefile location is setting as an absolute path (E.g.: file:/D:/Geoserver/data_dir/data/workspace_name/datastore_name/data.shp) unlike when creating coveragestores, the fie location is set to the relative path. E.g. : file:data/workspace_name/rasterstore_name/raster.geotiff. This leads to unavailability of the shapefile data store and previewing of the vector data when the geoserver is reused in multiple PCs. (E.g: in one PC geoserver may be in E: drive and in another it may be in C: drive but data becomes unavailable due to the absolute path location). How can we fix it?