-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement GLAD and Integrated Deforestation Alerts as a possible change detection source using the GFW API #53
Comments
It appears that I have missed this Developer documents section of the GFW Help Center, which provides guidance on how to use and set up auth tokens + API key, and construct POST requests for querying data. The Let's take the GFW Integrated Alerts, which is a new "integrated deforestation alerts layer [that] combines the analytical power of GLAD, GLAD-S2 and RADD deforestation alerts to provide a faster, more confident view of forest disturbances than any one individual system." At the GFW Integrated Alerts dataset endpoint at We can construct a query with SQL parameters for this POST endpoint: Example of a POST request structure provided in the documentation: However, I have not found a list of possible SQL queries, so I'm not sure yet how to apply this for our use case. It's not clear if we can request raw GeoJSON, or how the SQL query for doing so would need to be written. Rather than going through the process of trying to figure it out, I have asked GFW for more guidance on this. |
Turns out it's pretty straightforward. Sample query:
This will return an array of results, like this: {
"latitude": -6.90075,
"longitude": -76.13315,
"umd_glad_landsat_alerts__date": "2021-01-03",
"umd_glad_landsat_alerts__confidence": "high"
},
{
"latitude": -6.90085,
"longitude": -76.13315,
"umd_glad_landsat_alerts__date": "2021-01-03",
"umd_glad_landsat_alerts__confidence": "high"
} Using this, we can construct a GeoJSON feature collection composed of points to use on the front end. |
The GFW API does raster analysis on the fly, and there are payload limitations to bear in mind. I encountered this when trying to query data for one of our partner territories:
|
Feature Request
Let's add GLAD and Integrated Deforestation Alerts alerts as a new change detection data source using the GFW API.
Implementation Plan
https://data-api.globalforestwatch.org/dataset/gfw_integrated_alerts/latest/query
. We should write a SQL query that selects latitude, longitude, date, and confidence interval.AlertsDashboard
component should be modified to be able to utilize the data returned by this endpoint.The text was updated successfully, but these errors were encountered: