File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,11 @@ def _get_collection_shape(
123
123
outline_alpha : None | float = None ,
124
124
** kwargs : Any ,
125
125
) -> PatchCollection :
126
-
127
126
print (shapes )
128
127
patches = []
129
128
# remove empty points/polygons
130
129
shapes = shapes [shapes ["geometry" ].apply (lambda geom : not geom .is_empty )]
131
-
130
+
132
131
polygon_df = shapes [
133
132
shapes ["geometry" ].apply (lambda geom : geom .geom_type == "Polygon" ) # type: ignore[call-overload]
134
133
]
@@ -138,7 +137,7 @@ def _get_collection_shape(
138
137
circle_df = shapes [
139
138
shapes ["geometry" ].apply (lambda geom : geom .geom_type == "Point" ) # type: ignore[call-overload]
140
139
]
141
-
140
+
142
141
if len (polygon_df ) > 0 :
143
142
patches += [Polygon (p .exterior .coords , closed = True ) for p in polygon_df ["geometry" ]]
144
143
if len (circle_df ) > 0 :
You can’t perform that action at this time.
0 commit comments