MCPcopy Create free account
hub / github.com/Notgnoshi/generative / PointTag

Class PointTag

generative/flatten/flatten.py:21–50  ·  view source on GitHub ↗

Tags to mark points in a coordinate sequence. Note that each _END tag _must_ be the corresponding _BEGIN tag +1. Further, note that there is no tag for POINTs, because a point is any coordinate that's not wrapped between two _BEGIN and _END tags.

Source from the content-addressed store, hash-verified

19
20
21class PointTag(Enum):
22 """Tags to mark points in a coordinate sequence.
23
24 Note that each _END tag _must_ be the corresponding _BEGIN tag +1.
25
26 Further, note that there is no tag for POINTs, because a point is any coordinate that's not
27 wrapped between two _BEGIN and _END tags.
28 """
29
30 LINESTRING_BEGIN = auto()
31 LINESTRING_END = auto()
32
33 POLYGON_BEGIN = auto()
34 POLYGON_END = auto()
35 SHELL_BEGIN = auto()
36 SHELL_END = auto()
37 HOLE_BEGIN = auto()
38 HOLE_END = auto()
39
40 MULTIPOINT_BEGIN = auto()
41 MULTIPOINT_END = auto()
42
43 MULTILINESTRING_BEGIN = auto()
44 MULTILINESTRING_END = auto()
45
46 MULTIPOLYGON_BEGIN = auto()
47 MULTIPOLYGON_END = auto()
48
49 COLLECTION_BEGIN = auto()
50 COLLECTION_END = auto()
51
52
53Geometry = shapely.geometry.base.BaseGeometry

Callers 3

wrap_bareFunction · 0.85
wrap_taggedFunction · 0.85
__unflatten_multipartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected