ChipClassificationGeoJSONStore#
- class ChipClassificationGeoJSONStore[source]#
Bases:
LabelStore
Storage for chip classification predictions.
- __init__(uri: str, class_config: ClassConfig, crs_transformer: CRSTransformer)[source]#
Constructor.
- Parameters
uri (str) – uri of GeoJSON file containing labels
class_config (ClassConfig) – ClassConfig
crs_transformer (CRSTransformer) – CRSTransformer to convert from map coords in label in GeoJSON file to pixel coords.
Methods
__init__
(uri, class_config, crs_transformer)Constructor.
Produces an empty Labels
Loads Labels from this label store.
save
(labels)Save labels to URI if writable.
- __init__(uri: str, class_config: ClassConfig, crs_transformer: CRSTransformer)[source]#
Constructor.
- Parameters
uri (str) – uri of GeoJSON file containing labels
class_config (ClassConfig) – ClassConfig
crs_transformer (CRSTransformer) – CRSTransformer to convert from map coords in label in GeoJSON file to pixel coords.
- empty_labels() ChipClassificationLabels [source]#
Produces an empty Labels
- Return type
- get_labels() ChipClassificationLabels [source]#
Loads Labels from this label store.
- Return type
- save(labels: ChipClassificationLabels) None [source]#
Save labels to URI if writable.
Note that if the grid is inferred from polygons, only the grid will be written, not the original polygons.
- Parameters
labels (ChipClassificationLabels) –
- Return type
None