gicait / geoserver-rest

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

How to create a NetCDF data store ? #150

Open jougisljs opened 6 months ago

jougisljs commented 6 months ago

Hi, thank your work . I have a question . After install NetCDF on GeoServer .

How to use geoserver-rest create a NetCDF data store , then publish a netcdf Layer ? thank you very much.

jougisljs commented 6 months ago

geo = Geoserver('http://localhost:8080/geoserver', username='admin', password='geoserver')

# workspace
workspace_name = 'testworkspace'
# nc store
path = r'E:\Argo\BOA\BOA_Argo_2024_02.nc'
result = geo.create_coveragestore(path, workspace_name, 'boa_argo_2024_02', 'NetCDF', 'image/tiff')`

/////////
geo.Geoserver.GeoserverException: Status : 400 
iamtekson commented 5 months ago

Hi @jougisljs, the feature is currently unsupported in this package. We still need to release this feature.