stamen / moore

Maps of ocean protected areas for the Gordon and Betty Moore Foundation
0 stars 0 forks source link

Simplify GeoJSON #21

Closed almccon closed 10 years ago

almccon commented 10 years ago

Wow, some of these are unnecessarily huge.

-rw-r--r--   1 alan  staff    769596 Sep 29 17:14 LOMA_Beaufort_Sea.geojson
-rw-r--r--   1 alan  staff       217 Sep 29 17:14 LOMA_Eastern_Scotian_Shelf.geojson
-rw-r--r--   1 alan  staff    613042 Sep 29 17:14 LOMA_Gulf_of_Saint_Lawrence.geojson
-rw-r--r--   1 alan  staff    991445 Sep 29 17:14 LOMA_Pacific_North_Coast.geojson
-rw-r--r--   1 alan  staff    432006 Sep 29 17:14 LOMA_Placentia_Bay___Grand_Banks.geojson
-rw-r--r--   1 alan  staff    641863 Aug 28 18:22 bc_mapp_subregions.geojson
-rw-r--r--   1 alan  staff  28463154 Aug 15 11:57 bc_pncima.geojson
-rw-r--r--   1 alan  staff     35158 Aug 28 18:31 bc_wcvi.geojson
-rw-r--r--   1 alan  staff   2276178 Aug 15 11:57 canada_eez.geojson
-rw-r--r--   1 alan  staff   1781403 Sep 29 17:14 florida_keys.geojson
-rw-r--r--   1 alan  staff    838764 Aug 26 18:06 hi_humpback_sanctuary.geojson
-rw-r--r--   1 alan  staff    979785 Aug 28 18:29 ma_coastalzone.geojson
-rw-r--r--   1 alan  staff   4824581 Sep 29 17:15 oregon.geojson
-rw-r--r--   1 alan  staff    356462 Aug 15 11:59 ri_coastalzone.geojson
-rw-r--r--   1 alan  staff   7489238 Aug 15 11:57 us_eez.geojson
almccon commented 10 years ago

Any reason not to roll them into a topojson? Probably not.

almccon commented 10 years ago

With 88ad103c9e49859a5100ff4e2cb3b1c764315aee and e41ed34b4a9f3738bf1069275d4711dcdef4774e we now have one TopoJSON that's about 1MB. It looks a little rough to me when you zoom in. Maybe we need more detail, but that will start to balloon the filesize again.

Current level of detail in Massachusetts:

screen shot 2014-10-21 at 1 04 53 pm

almccon commented 10 years ago

From that screenshot it looks like I need to have topojson to some pruning and cleanup, too.

almccon commented 10 years ago

Improved version is 1.6MB. https://github.com/stamen/moore/blob/master/assets/geojson/planning_areas.topojson

Looks fine to me. If file size is an issue, we can revisit this. screen shot 2014-11-05 at 1 52 10 pm