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

polygonise doesn't work with negative values. #140

Closed
rafaqz opened this issue May 13, 2024 · 2 comments
Closed

polygonise doesn't work with negative values. #140

rafaqz opened this issue May 13, 2024 · 2 comments

Comments

@rafaqz
Copy link
Member

rafaqz commented May 13, 2024

MWE:

using Rasters
import GeometryOps
xlon = X(525700.0:100:621100.0)
xlat = Y(5.5461e6:100:5.6031e6)
rast = fill(-1, xlon, xlat)
pol = GeometryOps.polygonize(lookup(rast, X), lookup(rast, Y), rast) # negative rastervalues return Any[]
rast = fill(10, xlon, xlat)
pol = GeometryOps.polygonize(lookup(rast, X), lookup(rast, Y), rast) #gives 1-element Vector{GeometryBasics.  ...
@asinghvi17
Copy link
Member

Polygonize only works with bools as I recall

@asinghvi17
Copy link
Member

Fixed by #141

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