'Polygon' object does not support indexing
Issue #152
resolved
Error thrown by MultiPolygon(poly_buffer)
in camlib.Gerber.parse_lines()
.
I tried MultiPolygon(poly_buffer[0:200])
and worked and MultiPolygon(poly_buffer[0:201])
and failed.
Comments (5)
-
reporter -
reporter In [1]: import shapely In [2]: shapely.__version__ Out[2]: '1.5.9'
-
reporter Updated Shapely to 1.5.12 without success.
-
reporter Workaround by:
if not geo.is_empty: poly_buffer.append(geo)
instead of doing
poly_buffer.append(geo)
-
reporter - changed status to resolved
The workaround should not cause any problems. The original cause seems to be a bug in Shapely.
- Log in to comment