From ac879141b82c58887e5098b6ccc0586864cf67e9 Mon Sep 17 00:00:00 2001 From: Richard Law Date: Wed, 3 May 2023 13:19:15 +1200 Subject: [PATCH] fixes bug with local paths --- README.md | 4 ++-- pyproject.toml | 2 +- vector2dggs/h3.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 67235bb..d1004b9 100644 --- a/README.md +++ b/README.md @@ -152,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.3.0}, + version={0.3.1}, date={2023-04-20} } ``` APA/Harvard -> Ardo, J., & Law, R. (2023). vector2dggs (0.3.0) [Computer software]. https://github.com/manaakiwhenua/vector2dggs +> Ardo, J., & Law, R. (2023). vector2dggs (0.3.1) [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) diff --git a/pyproject.toml b/pyproject.toml index 393e0e5..f72cbcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "vector2dggs" -version = "0.3.0" +version = "0.3.1" description = "CLI DGGS indexer for vector geospatial data" authors = ["James Ardo "] maintainers = ["Richard Law "] diff --git a/vector2dggs/h3.py b/vector2dggs/h3.py index 8457a10..1039af6 100644 --- a/vector2dggs/h3.py +++ b/vector2dggs/h3.py @@ -272,7 +272,7 @@ def h3( """ con: sqlalchemy.engine.Connection = None scheme: str = urlparse(vector_input).scheme - if scheme is not None and scheme != "file": + if bool(scheme) and scheme != "file": # Assume database connection con = sqlalchemy.create_engine(vector_input) elif not Path(vector_input).exists():