Vectortile¶
- class sds_data_model.vector.VectorTile(bbox, gpdf)¶
#TODO VectorTile class documentation.
- Parameters
bbox (Tuple[int, int, int, int]) –
gpdf (dask.delayed.Delayed) –
- Return type
None
- __init__(bbox, gpdf)¶
- Parameters
bbox (Tuple[int, int, int, int]) –
gpdf (dask.delayed.Delayed) –
- Return type
None
Methods
__init__
(bbox, gpdf)from_file
(data_path, bbox[, ...])#TODO.
join
(other, how[, fillna])# TODO.
select
(columns)# TODO.
to_mask
([out_shape, invert, dtype])# TODO.
to_raster
(column[, out_shape, dtype])# TODO.
where
(condition)# TODO.
Attributes
# TODO.
bbox
gpdf
- classmethod from_file(data_path, bbox, convert_to_categorical=None, category_lookups=None, data_kwargs=None)¶
#TODO.
- Parameters
data_path (str) – # TODO
bbox (BoundingBox) – # TODO
convert_to_categorical (Optional[List[str]], optional) – # TODO. Defaults to None.
category_lookups (Optional[CategoryLookups], optional) – # TODO. Defaults to None.
data_kwargs (Optional[Dict[str, Any]], optional) – # TODO. Defaults to None.
- Returns
# TODO
- Return type
_VectorTile
- join(other, how, fillna=None, **kwargs)¶
# TODO.
- Parameters
other (DataFrame) – # TODO
how (str) – # TODO
fillna (Optional[Dict[str, Any]], optional) – # TODO. Defaults to None.
**kwargs (Dict[str, Any]) – # TODO.
self (sds_data_model.vector._VectorTile) –
kwargs (Dict[str, Any]) –
- Returns
# TODO
- Return type
_VectorTile
- select(columns)¶
# TODO.
- Parameters
columns (List[str]) – # TODO
self (sds_data_model.vector._VectorTile) –
- Returns
# TODO
- Return type
_VectorTile
- to_mask(out_shape=(10000, 10000), invert=True, dtype='uint8')¶
# TODO.
- Parameters
out_shape (Tuple[int, int]) – # TODO. Defaults to OUT_SHAPE.
invert (bool) – # TODO. Defaults to True.
dtype (str) – # TODO. Defaults to “uint8”.
self (sds_data_model.vector._VectorTile) –
- Returns
# TODO
- Return type
NDArray[uint8]
- to_raster(column, out_shape=(10000, 10000), dtype='uint8')¶
# TODO.
- Parameters
column (str) – # TODO
out_shape (Tuple[int, int]) – # TODO. Defaults to OUT_SHAPE.
dtype (str) – # TODO. Defaults to “uint8”.
self (sds_data_model.vector._VectorTile) –
- Returns
# TODO
- Return type
NDArray[number]
- property transform: affine.Affine¶
# TODO.
- Returns
# TODO
- Return type
Affine
- where(condition)¶
# TODO.
- Parameters
condition (Series) – # TODO
self (sds_data_model.vector._VectorTile) –
- Returns
# TODO
- Return type
_VectorTile