Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapefile path is absolute in create_shp_datastore (QUESTION) #72

Open
MadaraPremawardhana opened this issue Mar 3, 2022 · 0 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@MadaraPremawardhana
Copy link

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?

@MadaraPremawardhana MadaraPremawardhana changed the title shapefile datastore path is absolute shapefile path is absolute in create_shp_datastore Mar 3, 2022
@MadaraPremawardhana MadaraPremawardhana changed the title shapefile path is absolute in create_shp_datastore shapefile path is absolute in create_shp_datastore (QUESTION) Mar 7, 2022
@iamtekson iamtekson added good first issue Good for newcomers question Further information is requested labels Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants