gicait / geoserver-rest

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

How to create a NetCDF data store ? #150

Open jougisljs opened 3 months ago

jougisljs commented 3 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 3 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 2 months ago

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