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

Add support for NetCDF #26

Open
MartinPontius opened this issue Feb 3, 2022 · 1 comment
Open

Add support for NetCDF #26

MartinPontius opened this issue Feb 3, 2022 · 1 comment

Comments

@MartinPontius
Copy link

Is your feature request related to a problem? Please describe.
I would like to use the library to create NetCDF coverage stores and layers, e.g. with the create_coveragestore method.
At the moment this is not possible because the allowed_types list doesn't contain this type.

Describe the solution you'd like
After adding 'NetCDF' to the allowed_types list, the create_coveragestore method works with NetCDF files. No other changes were necessary. However, I haven't tested all other functionalities/methods, so there might be more changes necessary for a full support.

Describe alternatives you've considered

Additional context
In order to use this the Geoserver NetCDF plugin(s) need to be installed.

@jougisljs
Copy link

jougisljs commented Mar 19, 2022

GeoServer 2.20.3 for Windows , Python 3.10.2
Please help me , I try to use the code : BUT
#####################
cat.create_coveragestore('boa2021031', workspace='cite', type='NetCDF', contet_type='text/xml',
source_name='boa202103',
path=r'file:\test\BOA_Argo_2021_03.nc', layer_name='temp', create_layer=True)
#####################

Traceback (most recent call last):
File "D:\Python\geoapi\test3.py", line 8, in
reslut = cat.create_coveragestore('boa2021031', workspace='cite', type='NetCDF', contet_type='text/xml',
File "C:\Python310\lib\site-packages\geoserver\catalog.py", line 622, in create_coveragestore
raise FailedRequestError('Failed to create coverage/layer {} for : {}, {}'.format(layer_name, name,
geoserver.catalog.FailedRequestError: Failed to create coverage/layer temp for : boa2021031, 500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants