Skip to content

[Bug]: as_dict method cuts off border polygons on antimeridian #86

@scottstanie

Description

@scottstanie

Checked for duplicates

Yes - I've already checked

Describe the bug

The as_dict code will cut off half the polygon for bursts on the antimeridian (-180 longitude)
https://github.com/opera-adt/s1-reader/blob/main/src/s1reader/s1_burst_slc.py#L367

See opera-adt/burst_db#1

The anti-meridian crossing bursts (international date line) have two polygons, since it's conventional to split the latlon that way.

What did you expect?

The likely fix will be converting to a MultiPolygon which can still be represented as WKT.

Reproducible steps

No response

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageIssue requires triage to proceed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions