Skip to content

silver_grid_data_object

SilverGridDataObject

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
class SilverGridDataObject(GeoParquetDataObject):
    """
    Class that models operational grid.
    """

    ID = "SilverGridDO"
    SCHEMA = StructType(
        [
            StructField(ColNames.geometry, GeometryType(), nullable=False),
            StructField(ColNames.grid_id, StringType(), nullable=False),
            # partition columns
            StructField(ColNames.quadkey, StringType(), nullable=True),
        ]
    )

    MANDATORY_COLUMNS = [ColNames.grid_id, ColNames.geometry]

    PARTITION_COLUMNS = [ColNames.quadkey]