MCPcopy
hub / github.com/django/django / OGRGeomType

Class OGRGeomType

django/contrib/gis/gdal/geomtype.py:4–146  ·  view source on GitHub ↗

Encapsulate OGR Geometry Types.

Source from the content-addressed store, hash-verified

2
3
4class OGRGeomType:
5 "Encapsulate OGR Geometry Types."
6
7 wkb25bit = -2147483648
8
9 # Dictionary of acceptable OGRwkbGeometryType s and their string names.
10 _types = {
11 0: "Unknown",
12 1: "Point",
13 2: "LineString",
14 3: "Polygon",
15 4: "MultiPoint",
16 5: "MultiLineString",
17 6: "MultiPolygon",
18 7: "GeometryCollection",
19 8: "CircularString",
20 9: "CompoundCurve",
21 10: "CurvePolygon",
22 11: "MultiCurve",
23 12: "MultiSurface",
24 15: "PolyhedralSurface",
25 16: "TIN",
26 17: "Triangle",
27 100: "None",
28 101: "LinearRing",
29 102: "PointZ",
30 1008: "CircularStringZ",
31 1009: "CompoundCurveZ",
32 1010: "CurvePolygonZ",
33 1011: "MultiCurveZ",
34 1012: "MultiSurfaceZ",
35 1013: "CurveZ",
36 1014: "SurfaceZ",
37 1015: "PolyhedralSurfaceZ",
38 1016: "TINZ",
39 1017: "TriangleZ",
40 2001: "PointM",
41 2002: "LineStringM",
42 2003: "PolygonM",
43 2004: "MultiPointM",
44 2005: "MultiLineStringM",
45 2006: "MultiPolygonM",
46 2007: "GeometryCollectionM",
47 2008: "CircularStringM",
48 2009: "CompoundCurveM",
49 2010: "CurvePolygonM",
50 2011: "MultiCurveM",
51 2012: "MultiSurfaceM",
52 2015: "PolyhedralSurfaceM",
53 2016: "TINM",
54 2017: "TriangleM",
55 3001: "PointZM",
56 3002: "LineStringZM",
57 3003: "PolygonZM",
58 3004: "MultiPointZM",
59 3005: "MultiLineStringZM",
60 3006: "MultiPolygonZM",
61 3007: "GeometryCollectionZM",

Callers 14

LayerMappingClass · 0.90
check_layerMethod · 0.90
geom_typeMethod · 0.90
__init__Method · 0.90
geom_typeMethod · 0.90
centroidMethod · 0.90
_create_emptyMethod · 0.90
get_geometry_typeMethod · 0.90
get_geometry_typeMethod · 0.90
get_geometry_typeMethod · 0.90
test_geomtypeMethod · 0.90
test_geom_type_reprMethod · 0.90

Calls 1

itemsMethod · 0.45

Tested by 3

test_geomtypeMethod · 0.72
test_geom_type_reprMethod · 0.72
test_geomtype_25dMethod · 0.72