GeoDataFrame

todo

class blocksnet.models.geodataframe.BaseRow(*, geometry: Geometry, index: int)[source]

Bases: BaseModel, ABC

Provides an abstract for data validation in GeoDataFrame. Generics must be inherited from this base class.

The inherited class also can be configured to provide default column values to avoid None and NaN

geometry: Geometry
index: int

Index can be override but should not be set by default

class blocksnet.models.geodataframe.GeoDataFrame(data, *args)[source]

Bases: GeoDataFrame, BaseModel, Generic[T]

Basically a geopandas GeoDataFrame, but with Generic[T]. Provide a BaseRow inherited class to automatically validate data on init.

property generic