Skip to content

RasterFootprint with antimeridian-spanning sentinel-1 image gives incorrect and odd footprint #425

@philvarner

Description

@philvarner

Describe the bug

Using RasterFootprint with a sentinel-1 image that crosses the antimeridian gives an incorrect and odd footprint.

To reproduce

See attached script, and the 3 files it generates. This produces a geojson that looks like:

image

Then splitting it with either the stactools antimeridian package or gadomski/antimeridian give inverted results.

Expected behavior

RasterFootprint gives me a correct geometry over the raster.

Additional context

repro.py.txt

bad_footprint_split_with_antimeridian.geojson.txt
bad_footprint_split_with_stactools_antimeridian.geojson.txt
bad_footprint.geojson.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions