From f49a05dc73a10d6068d6a51682f72c01a99d0032 Mon Sep 17 00:00:00 2001 From: Alexander Kmoch Date: Mon, 28 Oct 2024 10:43:53 +0200 Subject: [PATCH] dependencies correction --- README.md | 2 ++ dggrid4py/__init__.py | 2 +- docs/source/usage.rst | 3 +++ examples/demo_highlevel_api.py | 2 ++ pyproject.toml | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 715c002..adcad23 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ gdf1 = dggrid_instance.grid_cell_polygons_for_extent('ISEA4T', 5) print(gdf1.head()) gdf1.to_file('isea4t_5.shp') +gdf_centroids = dggrid_instance.grid_cell_centroids_for_extent(dggs_type='ISEA7H', resolution=4, mixed_aperture_level=None, clip_geom=None) + # clip extent clip_bound = shapely.geometry.box(20.2,57.00, 28.4,60.0 ) diff --git a/dggrid4py/__init__.py b/dggrid4py/__init__.py index e39878b..3bbdde2 100644 --- a/dggrid4py/__init__.py +++ b/dggrid4py/__init__.py @@ -10,4 +10,4 @@ from .dggrid_runner import DGGRIDv7, Dggs, dgselect, dggs_types -__version__ = "0.2.8" +__version__ = "0.2.9" diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 69b2819..ea1c32d 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -42,6 +42,9 @@ comfortable geopython libraries, like shapely and geopandas print(gdf1.head()) gdf1.to_file('isea4t_5.shp') + gdf_centroids = dggrid_instance.grid_cell_centroids_for_extent(dggs_type='ISEA7H', resolution=4, mixed_aperture_level=None, clip_geom=None) + print(gdf_centroids.head()) + # clip extent clip_bound = shapely.geometry.box(20.2,57.00, 28.4,60.0 ) diff --git a/examples/demo_highlevel_api.py b/examples/demo_highlevel_api.py index 6546289..3c1b0fa 100644 --- a/examples/demo_highlevel_api.py +++ b/examples/demo_highlevel_api.py @@ -46,6 +46,8 @@ def highlevel_grid_gen_and_transform(dggrid_instance): # print(gdf3.head()) gdf3_a.to_file('/tmp/est_shape_isea7h_9.shp') + gdf_centroids = dggrid_instance.grid_cell_centroids_for_extent(dggs_type='ISEA7H', resolution=4, mixed_aperture_level=None, clip_geom=None) + df1 = dggrid_instance.grid_stats_table('ISEA7H', 8) # print(df1.head(8)) df1.to_csv('/tmp/eisea7h_8_stats.csv', index=False) diff --git a/pyproject.toml b/pyproject.toml index fa17b51..2c42f07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dggrid4py" -version = "0.2.8" +version = "0.2.9" description = "a Python library to run highlevel functions of DGGRIDv7 and v8" authors = ["Alexander Kmoch ", "Wai Tik Chan ",