generated from worldbank/template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/56/support multipolygon (#68)
* Add failing test * Handle multipolygons closes #56 * Add test on h3_utils.py for multipolygons * In progress: exand tests * Use real hex_ids in tests * Properly handle bad fields * Pre-commit * Rm test failure --------- Co-authored-by: Zachary Deziel <zachary.deziel@gmail.com>
- Loading branch information
Showing
6 changed files
with
136 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from typing import Dict | ||
from typing import Dict, Union | ||
|
||
from geojson_pydantic import Feature, Polygon | ||
from geojson_pydantic import Feature, MultiPolygon, Polygon | ||
from typing_extensions import TypeAlias | ||
|
||
AoiModel: TypeAlias = Feature[Polygon, Dict] | ||
AoiModel: TypeAlias = Feature[Union[Polygon, MultiPolygon], Dict] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters