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

Display alert when RWD does not yield a valid watershed #1175

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

kdeloach
Copy link
Contributor

@kdeloach kdeloach commented Mar 9, 2016

There are certain conditions where the RWD job completes successfully,
but does not yield a valid watershed. Without this alert, there is no
indication that the job completed or not.

The reason this is a plain alert box instead of something nicer, is
because we intend to address the cause behind the null watersheds soon.

Ref: WikiWatershed/rapid-watershed-delineation#27

Fixes #1166

@@ -41,11 +41,22 @@ function actOnLayer(datum) {
}
}

// Takes a GeoJSON shape, or if a key is specified, a dict
// with a GeoJSON object found at shape[shapeKey]
function validateShape(shape, shapeKey) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this will actually fix a newly reported bug #1166

@mmcfarland
Copy link
Contributor

+1

@mmcfarland mmcfarland assigned kdeloach and unassigned mmcfarland Mar 10, 2016
There are certain conditions where the RWD job completes successfully,
but does not yield a valid watershed. Without this alert, there is no
indication that the job completed or not.

The reason this is a plain alert box instead of something nicer, is
because we intend to address the cause behind the null watersheds soon.

Ref: WikiWatershed/rapid-watershed-delineation#27

Fixes WikiWatershed#1166
@kdeloach
Copy link
Contributor Author

Cool, I added more details in the commit description too.

kdeloach added a commit that referenced this pull request Mar 10, 2016
Display alert when RWD does not yield a valid watershed
@kdeloach kdeloach merged commit 3c28a49 into WikiWatershed:develop Mar 10, 2016
@kdeloach kdeloach deleted the feature/null-watershed branch March 10, 2016 16:48
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

Successfully merging this pull request may close these issues.

2 participants