-
Notifications
You must be signed in to change notification settings - Fork 16
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
dataSourceClient.deleteDataStore()
can't delete the origin file in disk
#53
Comments
Hi @simonscat-123 Thanks for your feedback. Currently in Adding the A pull request for this issue is very appreciated. Let me know if you have further questions. |
Thanks for the reply! @JakobMiksch I have thousands of remote sensing images that need to be published on geoserver, and the layer styles need to be set as appropriate. At first I tried to use Then after carefully studying your code and the Geoserver Rest API, I decided to create new method In fact, the configuration body of coverageStore and coverage is complex (as long as the API example), but also flexible. I am not sure if it is appropriate to add these to the project. If there is anything I can do, please let me know 😃 |
Hi @simonscat-123, sounds good. Would you like to create a pull request offering the 2 new functions you described in your comment above? Would be very appreciated. |
@chrismayer Sure, I will finish it in a few days. |
dataSourceClient.deleteDataStore()
can't delete the origin file in disk
Hello!This is a great project and it inspirited me a lot. But some method may not seem to work as I expected.
When I use dataSourceClient.deleteDataStore(), I want to delete both the store in geoserver and origin file in disk:
const source2 = dataSource.deleteCoverageStore('testAuto', 'testCN', true)
After code runs, it returned status 200 and statusText 'OK', and the store can't be found in geoserver as well. But when I checked the disk, I found that the origin file was still in there. I also checked the Rest API Document, I think setting 'recurse = true' could delete the origin file, but it just doesn't.
Is this a bug in geoserver? What is the difference between 'purge' and 'recurse'?
Thanks for the answer!
The text was updated successfully, but these errors were encountered: