Skip to content

rgeos::createPolygonsComment Is there some higher-level functionality in sf or terra that we can use for this #9

@rsbivand

Description

@rsbivand

Thanks @rsbivand. With regard to rgeos::createPolygonsComment, it looks to me like we use this for sp Polygons objects whenever they're missing comment data indicating, for each hole, what non-hole they belong to.

createPolygonsComment attempts to create a valid comment for a Polygons object by assessing which polygons contain a given hole (using gContains). Ownership is assigned to the smallest polygon (by area) that contains the given hole.

rstudio/leaflet#833

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions