1

The problem

I would like to be able to interactively draw a polygon on a choropleth map, where I can draw as many vertices as needed. After drawing the polygon, I would like to get back the zonal histogram or zonal statistics from the choropleth map within the polygon.

What I read

I checked out this link: https://community.plotly.com/t/draw-polygon-in-mapbox-with-dash-python/34917/5, which shows how to solve my problem, but only the polygon drawing and on Leaflet, and not how to get back the zonal statistics or histogram (see the answer from Emil also with an example picture)

The question

  1. Can I solve described problem somehow in Plotly instead of Leaflet?
  2. If not, how can I return the zonal histogram or statistics that I draw on a map?
4
  • 1
    Is there a reason you don't want to use a program like qgis which has these capabilities built in?
    – Llaves
    May 21, 2022 at 22:41
  • Hi @Llaves, yes the aim is to provide the results to people who do not have any qgis experience. They aim is that they can boot up the dashboard and just play around, and don't need to install qgis and learn it.
    – Thierry
    May 22, 2022 at 8:49
  • @Thierry did you ever find out how to do this?
    – kms
    Sep 10, 2022 at 22:28
  • Hi @kms, unfortunately I did not. I am currently trying out the capabilities of Earth Engine together with the geemap python package that might offer this.
    – Thierry
    Sep 11, 2022 at 15:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.