Skip to content

Passsing assert_polygons a GeoDataFrame #175

@nkorinek

Description

@nkorinek

If a GeoDataFrame is passed into VectorTester.assert_polygons() as the polygons_expected, the test fails bc it is not a list of coordinates. There is a helper function called _convert_multipolygons that properly converts the GeoDataFrame into a list of coordinates. However, it is not called in the assert_polygons() function. There should be a check to see if the input is a GeoDataFrame and if it is the function _convert_multipolygons should be called within the function assert_polygons(). @lwasser

Metadata

Metadata

Assignees

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