Skip to content

Resample s_region combiner errors out if input s_region has multiple polygons #10513

@stscijirahub

Description

@stscijirahub

Issue JP-4349 was created on JIRA by Ned Molter:

Resample attempts to combine the input file S_REGION values into a single combined output footprint.  However if any of the input S_REGIONs itself contains multiple polygons, the code doesn't know how to handle it and gives a hard-to-understand error that looks like

shapely.errors.GEOSException: TopologyException: side location conflict at 2318.534796107444 1271.0075765540262. This can occur if the input geometry is invalid.```
This was noticed when I was trying to re-resample an i2d file into a new WCS, which is an edge case and probably a bad idea in the first place, so there's unlikely any effect on pipeline products.  Nevertheless, the rest of resample has no trouble handling this case and it really should be straightforward to support the s_region part of it too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions