Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion turfpy/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Project version information."""

__version__ = "0.0.7"
__version__ = "0.0.8"
6 changes: 3 additions & 3 deletions turfpy/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from shapely import geometry as geometry
from shapely.geometry import LineString as ShapelyLineString
from shapely.geometry import MultiPoint, MultiPolygon, Point, mapping, shape
from shapely.ops import cascaded_union, clip_by_rect, polygonize, unary_union
from shapely.ops import clip_by_rect, polygonize, unary_union

from turfpy.helper import get_coord, get_coords, get_geom, get_type, length_to_degrees
from turfpy.measurement import (
Expand Down Expand Up @@ -280,7 +280,7 @@ def union(
if "properties" in f.keys():
properties_list.append(f["properties"])

result = cascaded_union(shapes)
result = unary_union(shapes)
result = mapping(result)
properties = merge_dict(properties_list)

Expand Down Expand Up @@ -351,7 +351,7 @@ def add_edge(edges, edge_points, coords, i, j):

m = geometry.MultiLineString(edge_points)
triangles = list(polygonize(m))
return cascaded_union(triangles), edge_points
return unary_union(triangles), edge_points


def get_points(features):
Expand Down