Skip to content

Commit

Permalink
dependencies correction
Browse files Browse the repository at this point in the history
  • Loading branch information
allixender committed Oct 28, 2024
1 parent 286d31c commit f49a05d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

Expand Down
2 changes: 1 addition & 1 deletion dggrid4py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

from .dggrid_runner import DGGRIDv7, Dggs, dgselect, dggs_types

__version__ = "0.2.8"
__version__ = "0.2.9"
3 changes: 3 additions & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
2 changes: 2 additions & 0 deletions examples/demo_highlevel_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
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 = "dggrid4py"
version = "0.2.8"
version = "0.2.9"
description = "a Python library to run highlevel functions of DGGRIDv7 and v8"
authors = ["Alexander Kmoch <[email protected]>",
"Wai Tik Chan <[email protected]>",
Expand Down

0 comments on commit f49a05d

Please sign in to comment.