-
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
Use clipline to reduce polygon when we don't care about degenerate edges. When we do care call intersection to remove the degenerate edges. 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. Note: The Martinez polygon-clipping libraries can suffer from errors when lines align. Other intersection libraries are intractable for the size of coastline polygons. A solution is to call intersection after first calling clipline.
- Loading branch information
Geoff Jacobsen
committed
Jul 2, 2020
1 parent
4c4e155
commit 7cdee44
Showing
20 changed files
with
824 additions
and
285 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.