Opened 20 years ago
Closed 19 years ago
#831 closed enhancement (wontfix)
Pythonification of mapscript primitive classes
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-SWIG | Version: | 4.3 |
Severity: | minor | Keywords: | |
Cc: |
Description
Implement native Python type methods for point, line, rect, and shape in order to give the mapscript module a more Python-ic feel. First among these is an __iter__ iterator for lineObj which allows >>> for point in line: ... # do something with point and __str__ and __contain__ for rectObj which allow >>> if point in rect: ... # do something with point There are two aspects of containership: real containership as in the way a line contains points and a shape contains lines, and a fuzzy spatial containership as in the way a rectangle or shape can be thought of as containing points. We'll explore this duality as we go.
Change History (2)
Note:
See TracTickets
for help on using tickets.