Skip to content

BUG: boundary of MultiPolygon is None #184

@martinfleis

Description

@martinfleis

PyGEOS seems to return None instead of MultiLineString in pygeos.boundary if you pass MultiPolygon in.

import geopandas as gpd
import pygeos

df = gpd.read_file(gpd.datasets.get_path('nybb'))  # MultiPolygon geometry

pygeos.boundary(df.geometry.values.data)
-> array([None, None, None, None, None], dtype=object)

While shapely returns expected MultiLineString.

df.geometry.iloc[0].boundary.type
-> 'MultiLineString'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions