Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): mitigate polygon intersection errors #834

Merged
merged 1 commit into from
Jul 3, 2020

Commits on Jul 3, 2020

  1. 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.
    Geoff Jacobsen committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    6c44bdc View commit details
    Browse the repository at this point in the history