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

Two bugs in Smooth geoblock #54

Open
caspervdw opened this issue Jul 14, 2020 · 0 comments
Open

Two bugs in Smooth geoblock #54

caspervdw opened this issue Jul 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@caspervdw
Copy link
Collaborator

caspervdw commented Jul 14, 2020

From: https://nelen-schuurmans.atlassian.net/browse/BACK-366

https://sentry.io/organizations/nens/issues/1111837410

I could reproduce it from the console:

from geoblocks.raster import RasterStoreSource, Clip, Smooth
source = RasterStoreSource("file:///119-fs-c02/raster-production/stores/nelen-schuurmans/windkaart_nlv2")
smooth = Smooth(source, 50, 0)
req = {'bbox': [516246, 6706385, 521405, 6703400], 'height': 256, 'mode': 'vals', 'projection': 'EPSG:3857', 'start': None, 'stop': None, 'width': 256}
source_data = source.get_data(**req)
smooth_data = smooth.get_data(**req)
source_data['values'].shape
(1, 256, 256)
smooth_data['values'].shape
(1, 4, 256)

Another bug is: when handling a Point request, “shape_m” could be 0 in expand_request_meters, leading to ZeroDivisionError. --> #3706

@caspervdw caspervdw added the bug Something isn't working label Jul 14, 2020
@lexvand lexvand added this to the Backend | 2020-08-04 milestone Jul 15, 2020
@lexvand lexvand removed this from the Backend | 2020-08-04 milestone Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants