Skip to content

make_transition no longer accepts multipolygons  #252

@jackVanish

Description

@jackVanish

Some code in Remora that I've been working on relies on Glatos' make_transition function. Previously it used make_transition2, but now that that's been deprecated, I've had to pivot to using the one make_transition function. However, make_transition no longer accepts the multipolygon object I had been passing to make_transition2. I don't know if this is intentional functionality or an oversight, so I'm opening a ticket against it. Attached are a couple of screenshots of the output from make_transition and the object I'm passing to it.

image
image

On Mike O'Brien's suggestion I tried running st_as_sf on the multipolygon object (this didn't occur naturally because I generate that object by running st_as_sf on a different spatial object. That does produce an object that make_transition accepts, but I've yet to fully test that output, and having to change less of my code would be preferable if make_transition can be made to accept multipolygons like make_transition2 did.

Screen Shot 2024-12-13 at 10 26 21 AM

Metadata

Metadata

Assignees

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