make_cc_geodataset#
- make_cc_geodataset(cls, image_uri: str | list[str], label_vector_uri: str | None = None, class_config: ClassConfig | None = None, aoi_uri: str | list[str] = [], label_vector_default_class_id: int | None = None, image_raster_source_kw: dict = {}, label_vector_source_kw: dict = {}, label_source_kw: dict = {}, **kwargs)[source]#
Create an instance of this class from image and label URIs.
This is a convenience method. For more fine-grained control, it is recommended to use the default constructor.
- Parameters:
class_config (ClassConfig | None) – The
ClassConfig
.image_uri (str | list[str]) – URI or list of URIs of GeoTIFFs to use as the source of image data.
label_vector_uri (str | None) – URI of GeoJSON file to use as the source of segmentation label data. Defaults to
None
.class_config – The
ClassConfig
. Can beNone
if not using any labels.aoi_uri (str | list[str]) – URI or list of URIs of GeoJSONs that specify the area-of-interest. If provided, the dataset will only access data from this area. Defaults to
[]
.label_vector_default_class_id (int | None) – If using
label_vector_uri
and all polygons in that file belong to the same class and they do not contain a class_id property, then use this argument to map all of the polygons to the appropriate class ID. See docs forClassInferenceTransformer
for more details. Defaults toNone
.image_raster_source_kw (dict) – Additional arguments to pass to the RasterioSource used for image data. See docs for RasterioSource for more details. Defaults to
{}
.label_vector_source_kw (dict) – Additional arguments to pass to the
GeoJSONVectorSourceConfig
used for label data, iflabel_vector_uri
is set. See docs forGeoJSONVectorSourceConfig
for more details. Defaults to{}
.label_source_kw (dict) – Additional arguments to pass to the
ChipClassificationLabelSourceConfig
used for label data, iflabel_vector_uri
is set. See docs forChipClassificationLabelSourceConfig
for more details. Defaults to{}
.**kwargs – All other keyword args are passed to the default constructor for this class.
- Returns:
An instance of this GeoDataset subclass.