-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): mitigate polygon intersection errors
Floating-point rounding can cause the cutline polygon to self cross so we look for points too close together. The Martinez polygon-clipping libraries currently suffer from errors when lines align; try to mitigate around this by using simple bounds intersection where appropriate. Other intersection libraries are intractable for the size of coastline polygons. Store image bounds not polygons in SourceMetadata and also store in CogJob. This reduces floating-point errors when combining source imagery bounds into composite polygons.
- Loading branch information
Geoff Jacobsen
committed
Jun 28, 2020
1 parent
42ded3a
commit 8d2c937
Showing
15 changed files
with
566 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.