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

Determine Incident Proximity to Surface Water #127

Open
6 tasks
stdavis opened this issue Oct 15, 2024 · 4 comments
Open
6 tasks

Determine Incident Proximity to Surface Water #127

stdavis opened this issue Oct 15, 2024 · 4 comments

Comments

@stdavis
Copy link
Member

stdavis commented Oct 15, 2024

From client:

When a spill location is created or updated for an incident, the map widget should automatically find the nearest waterbody (using NHD data from SGID within a reasonable distance) and update Salesforce fields with the waterbody name and distance.

This could possibly be accomplished by querying the relevant NHD data within the search radius and then looping through each returned geometry to find the one that is closest.

Tasks

  • Determine which NHD layers, specifically, they would like searched (submitted this question to Sarah on 10/15)
  • Determine what a "reasonable distance" is
  • Determine what salesforce field should hold this data
  • Create a trigger for any time a spill location is created or updated
  • Query NDH layer(s)
  • Write value to Salesforce
@steveoh steveoh transferred this issue from agrc/project-moonwalk Oct 15, 2024
@steveoh
Copy link
Member

steveoh commented Oct 15, 2024

@stdavis stdavis mentioned this issue Oct 15, 2024
5 tasks
@stdavis
Copy link
Member Author

stdavis commented Oct 16, 2024

Could we use that with a feature service or would we have to query open sgid?

@steveoh
Copy link
Member

steveoh commented Oct 16, 2024

I think that operator is only available in pg directly.

@stdavis
Copy link
Member Author

stdavis commented Oct 22, 2024

Maybe this is already supported via the web api.

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