Bases: GeoParquetDataObject
Class that models operational grid.
Source code in multimno/core/data_objects/silver/silver_grid_data_object.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | class SilverGridDataObject(GeoParquetDataObject):
"""
Class that models operational grid.
"""
ID = "SilverGridDO"
SCHEMA = StructType(
[
StructField(ColNames.geometry, GeometryType(), nullable=False),
StructField(ColNames.grid_id, IntegerType(), nullable=False),
# partition columns
StructField(ColNames.origin, LongType(), nullable=False),
StructField(ColNames.quadkey, StringType(), nullable=True),
]
)
MANDATORY_COLUMNS = [ColNames.grid_id, ColNames.geometry]
PARTITION_COLUMNS = [ColNames.origin, ColNames.quadkey]
|