healthyregions / chicago-environment-explorer

ChiVes harmonizes & standardizes environmental data across dozens of sources to make it accessible for full exploration, alongside a growing list of resources on the Chicago Environment, cultivated by a community of curators.
8 stars 1 forks source link

Add tree canopy layer to Mapbox style #110

Open mradamcox opened 10 months ago

mradamcox commented 10 months ago

This is a very large file that needs to be converted to mbtiles (vector) and uploaded to Mapbox via their uploads API. Almost had this working and then the load errored with the message:

Tile exceeds maximum size of 500k at z10. Reduce the detail of data at this zoom level or omit it by adjusting your minzoom.

May need to use Tippecanoe to gain more fine-grained control over the output file.

mradamcox commented 10 months ago

After much more work on this, I've figured out a few things that make me think this task should be put on hold until we have the more recent canopy dataset.

The original MB tileset was created via direct upload through their studio interface, and since that time MB has implemented a 300mb limit on direct uploads which is far too small for this dataset (a geojson version is ~15gb). Beyond this, I've figured out that during the processing of the original upload, MB dropped a significant number of features, presumably in order to get under the default size limit of 500kb per tile.

image

With this in mind, I think the following process is what I recommend going forward, and because it's a bit involved I think it's worth just waiting until we get the new data so that we can do it only one time (these steps could all be done with QGIS or PostGIS, or a combination as needed):

Here's a screenshot of the style that was applied in the past and should be reapplied to the final layer in the style:

image

Makosak commented 9 months ago

Will link in the Regional Trees Institute for this question; @mradamcox will include you on the email for intros

Makosak commented 5 months ago

Wanted to follow up on this ~