read_labels#
- read_labels(labels_df: geopandas.GeoDataFrame, bbox: Optional[Box] = None) ChipClassificationLabels [source]#
Convert GeoDataFrame to ChipClassificationLabels.
If the GeoDataFrame already contains a grid of cells, then ChipClassificationLabels can be constructed in a straightforward manner without having to infer the class of cells.
If bbox is given, only labels that intersect with it are returned.
- Parameters
geojson – dict in normalized GeoJSON format (see VectorSource)
labels_df (geopandas.GeoDataFrame) –
- Returns
ChipClassificationLabels
- Return type