Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#25661 closed Bug (fixed)

LinearRing doesn't check number of points during list assignment

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: GIS Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In [7]: lr = LinearRing((0, 0), (0, 1), (1, 1), (0, 0))

In [8]: lr[:] = ((0,0), (0,1), (0,0))
GEOS_ERROR: IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or >= 4

---------------------------------------------------------------------------
GEOSException                             Traceback (most recent call last)

Change History (5)

comment:1 by Sergey Fedoseev, 9 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Sergey Fedoseev, 9 years ago

Has patch: set

comment:3 by Sergey Fedoseev, 9 years ago

Summary: LinearRing doesn't check number of poins during list assignmentLinearRing doesn't check number of points during list assignment

comment:4 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 1b598b4b:

Fixed #25661 -- Fixed checking number of points during list assignment for LinearRing.

comment:5 by Claude Paroz <claude@…>, 9 years ago

In 306efc8:

[1.9.x] Fixed #25661 -- Fixed checking number of points during list assignment for LinearRing.

Backport of 1b598b4b4 from master.

Note: See TracTickets for help on using tickets.
Back to Top