Skip to content

Commit

Permalink
fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-beta-soup committed Aug 31, 2023
1 parent 695a022 commit 355913f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ Options:
--help Show this message and exit.
```
### Example
## Visualising output
Output is in the Apache Parquet format, a directory with one file per partition.
Expand Down Expand Up @@ -157,13 +152,13 @@ vector2dggs h3 -v DEBUG -id ogc_fid -r 9 -p 5 -t 4 --overwrite -tbl topo50_lake
title={{vector2dggs}},
author={Ardo, James and Law, Richard},
url={https://github.com/manaakiwhenua/vector2dggs},
version={0.5.2},
version={0.5.3},
date={2023-04-20}
}
```
APA/Harvard
> Ardo, J., & Law, R. (2023). vector2dggs (0.5.2) [Computer software]. https://github.com/manaakiwhenua/vector2dggs
> Ardo, J., & Law, R. (2023). vector2dggs (0.5.3) [Computer software]. https://github.com/manaakiwhenua/vector2dggs
[![manaakiwhenua-standards](https://github.com/manaakiwhenua/vector2dggs/workflows/manaakiwhenua-standards/badge.svg)](https://github.com/manaakiwhenua/manaakiwhenua-standards)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vector2dggs"
version = "0.5.2"
version = "0.5.3"
description = "CLI DGGS indexer for vector geospatial data"
authors = ["James Ardo <[email protected]>"]
maintainers = ["Richard Law <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion vector2dggs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = "0.5.2"
__version__: str = "0.5.3"
3 changes: 3 additions & 0 deletions vector2dggs/katana.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def katana(geometry, threshold, count=0) -> GeometryCollection:
if not geometry.is_valid:
# print(explain_validity(geometry))
geometry = make_valid(geometry)
if geometry.type == 'GeometryCollection':
geometry.normalize()
geometry = geometry.buffer(0)
bounds = geometry.bounds
width = bounds[2] - bounds[0]
height = bounds[3] - bounds[1]
Expand Down

0 comments on commit 355913f

Please sign in to comment.