Skip to content

Commit

Permalink
remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepearson committed Jun 6, 2024
1 parent 51ff772 commit cc92c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geoapis/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_features_inside_catchment(
# Convert any one Polygon MultiPolygon to a straight Polygon then add to
# the geometries
if (
shapely_geometry.geometryType() == "MultiPolygon"
shapely_geometry.geom_type == "MultiPolygon"
and len(shapely_geometry.geoms) == 1
):
shapely_geometry = shapely_geometry.geoms[0]
Expand Down Expand Up @@ -267,7 +267,7 @@ def get_features(self, layer: int) -> geopandas.GeoDataFrame:
# Convert any one Polygon MultiPolygon to a straight Polygon then add to the
# geometries
if (
shapely_geometry.geometryType() == "MultiPolygon"
shapely_geometry.geom_type == "MultiPolygon"
and len(shapely_geometry.geoms) == 1
):
shapely_geometry = shapely_geometry.geoms[0]
Expand Down

0 comments on commit cc92c4c

Please sign in to comment.