-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: changed geometry orientation for hashing algorithm (#75)
* fix: changed geometry orientation for hashing * chore: added changelog entry * chore: change test values * chore: simplify duplication reduction algorithm * chore: change resource usage charts
- Loading branch information
Showing
8 changed files
with
96 additions
and
56 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Common components for tests.""" | ||
from pathlib import Path | ||
|
||
from shapely import to_geojson, to_wkt | ||
from shapely.geometry import Polygon, box | ||
|
||
|
||
def geometry_box() -> Polygon: | ||
"""Geometry box.""" | ||
return box( | ||
minx=7.416486207767861, | ||
miny=43.7310867041912, | ||
maxx=7.421931388477276, | ||
maxy=43.73370705597216, | ||
) | ||
|
||
|
||
def geometry_wkt() -> str: | ||
"""Geometry box in WKT form.""" | ||
return str(to_wkt(geometry_box())) | ||
|
||
|
||
def geometry_geojson() -> str: | ||
"""Geometry box in GeoJSON form.""" | ||
return str(to_geojson(geometry_box())) | ||
|
||
|
||
def geometry_boundary_file_path() -> str: | ||
"""Geometry Monaco boundary file path.""" | ||
return str(Path(__file__).parent.parent / "test_files" / "monaco_boundary.geojson") |
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