OCHA-DAP / hdx-signals

HDX Signals
https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-signals/
GNU General Public License v3.0
5 stars 0 forks source link

Add functionality to reduce basemap if necessary #221

Closed caldwellst closed 1 month ago

caldwellst commented 1 month ago

We ran into our first instance where the basemap for a country needed reduction, as the scale did not look good. This was for the USA where by default the contiguous USA and Alaska are plotted. We now have the functionality to check if spatial data falls within Alaska and if not, Alaska is dropped from the base map.

This will be useful for other countries where we drop distant territories or islands from their base spatial data. They are currently just dropped permanently in update_adm0_sf.R. If we ever need to use those territories, we can add them back to the basemap and then handle those territories geom_adm0.R instead.

caldwellst commented 1 month ago

Successful test runs here: