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

Create coverage store and mosaic error working with geoserver docker(kartoza) #3

Open
orttak opened this issue Jan 29, 2020 · 1 comment

Comments

@orttak
Copy link

orttak commented Jan 29, 2020

I am working on ubuntu18 and using kartoza geoserver docker v:2.15. I try to push Landsat band 4 (for sample I have two images epsg_4326) to geoserver with coverage store with below code
cat.create_coveragestore( 'name112', workspace=None, path='file:ndvi_4326/1.tif', type='GeoTIFF',create_layer=False, layer_name=None, source_name=None, upload_data=False,contet_type="image/tiff",overwrite=False)

when create layer is 'False' I can create store but if it is 'true' I get an error > 'FailedRequestError: Failed to create coverage/layer 1 for : name12, 400'

I got same error when I was trying with create_imagemosaic function.
cat.create_imagemosaic('band4','file:ndvi_4326',configure='all',workspace='ndvi')
image

I think, when trying to create layer I get an error and I checked to code I couldn't find anything. Any suggestions for this problem?

@orttak
Copy link
Author

orttak commented Feb 6, 2020

I found the solution. The path should be like 'file:/opt/geoserver/data_dir/ndvi2'

cat.create_imagemosaic('ndvi','file:/opt/geoserver/data_dir/ndvi2',configure='all',workspace='ndvi')

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

1 participant