Skip to content

Commit

Permalink
Replaced cascaded_union with unary_union
Browse files Browse the repository at this point in the history
Shapely 1.8.0
  • Loading branch information
MGERMA authored Nov 30, 2021
2 parents 03b1787 + d96c782 commit af395a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
-->
# 🛰️ EOTile

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

EOTile is a tile grid management tool that provide quick and easy methods to grab tile ids or information about its footprint.
There are four grid systems currently supported :
Expand Down
4 changes: 2 additions & 2 deletions eotile/eotiles/get_bb_from_tile_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import logging
import re
import pandas as pd
from shapely.ops import cascaded_union
from shapely.ops import unary_union

dev_logger = logging.getLogger("dev_logger")

Expand Down Expand Up @@ -86,7 +86,7 @@ def build_reference_geom(file_name, tile_id_list):
tile = get_tile(tile_list, tile_id)
output = output.append(tile)

geometry = cascaded_union(list(output.geometry))
geometry = unary_union(list(output.geometry))

return tile, geometry, output

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

setup(
name="eotile",
version="0.2.6",
version="0.2.7",
description="Managed Sentinel-2 and Landsat8 tile",
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -53,7 +53,7 @@
"geopy>=2.2,<3",
"pyproj>=3,<4",
"requests<=2.26,<3",
"Shapely>=1.7,<2",
"Shapely>=1.8,<2",
],
include_package_data=True,
package_data={
Expand Down

0 comments on commit af395a0

Please sign in to comment.