Skip to content

Commit af395a0

Browse files
authored
Replaced cascaded_union with unary_union
Shapely 1.8.0
2 parents 03b1787 + d96c782 commit af395a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
-->
1919
# 🛰️ EOTile
2020

21-
[![Version](https://img.shields.io/badge/Version-0.2.6-g)]() [![Python](https://img.shields.io/badge/Python-3.6+-blue)]()
21+
[![Version](https://img.shields.io/badge/Version-0.2.7-g)]() [![Python](https://img.shields.io/badge/Python-3.6+-blue)]()
2222

2323
EOTile is a tile grid management tool that provide quick and easy methods to grab tile ids or information about its footprint.
2424
There are four grid systems currently supported :

eotile/eotiles/get_bb_from_tile_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import logging
3838
import re
3939
import pandas as pd
40-
from shapely.ops import cascaded_union
40+
from shapely.ops import unary_union
4141

4242
dev_logger = logging.getLogger("dev_logger")
4343

@@ -86,7 +86,7 @@ def build_reference_geom(file_name, tile_id_list):
8686
tile = get_tile(tile_list, tile_id)
8787
output = output.append(tile)
8888

89-
geometry = cascaded_union(list(output.geometry))
89+
geometry = unary_union(list(output.geometry))
9090

9191
return tile, geometry, output
9292

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setup(
3535
name="eotile",
36-
version="0.2.6",
36+
version="0.2.7",
3737
description="Managed Sentinel-2 and Landsat8 tile",
3838
long_description=long_description,
3939
long_description_content_type='text/markdown',
@@ -53,7 +53,7 @@
5353
"geopy>=2.2,<3",
5454
"pyproj>=3,<4",
5555
"requests<=2.26,<3",
56-
"Shapely>=1.7,<2",
56+
"Shapely>=1.8,<2",
5757
],
5858
include_package_data=True,
5959
package_data={

0 commit comments

Comments
 (0)