stactools-packages / fws-nwi

stactools package for the National Wetlands Inventory (NWI) product provided by the U.S. Fish and Wildlife Service (FWS)
Other
1 stars 0 forks source link

Handle large geometries #3

Closed m-mohr closed 1 year ago

m-mohr commented 1 year ago

Some geometries are very large, how can we handle this better?

m-mohr commented 1 year ago

I'll try geometry.buffer(10).simplify(1000, preserve_topology=False) on ALL geometries, which was just applied for missing geometries beforehand. This shrinks it to 550KB - I may also want to reduce geometry precision when writing.

m-mohr commented 1 year ago

Two measures that I'll apply to all geometries now (regardless of size):

  1. geometry.buffer(10).simplify(250, preserve_topology=True)
  2. Reduce precision to 5 decimals