Skip to content

Antimeridian cases result in botched polygons or errors #62

Description

@irm-codebase

Describe the bug
If users request certain projected CRS and country combinations, the resulting file will end up botched as the projection renders the shape invalid.

To Reproduce
Steps to reproduce the behaviour:

Run the US example with the following settings.

    crs:
      projected: "EPSG:10598"  # will cause antimeridian issue
      geographic: "epsg:4326"

Look at the resulting country file. It will have odd 'cuts' across Alaska and Hawaii.

Expected behavior
This should either raise an error or the module should fix it.
There is a package that claims it can solve this: https://github.com/gadomski/antimeridian
We should test that first.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions