def check_crs_schema()

in data/geospatial/crs-gen.py [0:0]


def check_crs_schema(name, expected_col_type):
    file = parquet.ParquetFile(HERE / name)

    col = file.schema.column(1)
    col_dict = json.loads(col.logical_type.to_json())
    col_type = col_dict["Type"]
    if col_type != expected_col_type:
        raise ValueError(
            f"Expected '{expected_col_type}' logical type but got '{col_type}'"
        )