Skip to content

bronze_landuse_data_object

BronzeLanduseDataObject

Bases: GeoParquetDataObject

Class that models landuse spatial data.

Source code in multimno/core/data_objects/bronze/bronze_landuse_data_object.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class BronzeLanduseDataObject(GeoParquetDataObject):
    """
    Class that models landuse spatial data.
    """

    ID = "BronzeLanduseDO"
    SCHEMA = StructType(
        [
            StructField(ColNames.category, StringType(), nullable=False),
            StructField(ColNames.geometry, GeometryType(), nullable=False),
            # partition columns
            StructField(ColNames.year, ShortType(), nullable=False),
            StructField(ColNames.month, ByteType(), nullable=False),
            StructField(ColNames.day, ByteType(), nullable=False),
            StructField(ColNames.quadkey, StringType(), nullable=False),
        ]
    )

    PARTITION_COLUMNS = [ColNames.year, ColNames.month, ColNames.day, ColNames.quadkey]