v0.13 to v0.20#
This is a list of some changes that you would need to make your v0.13 code compatible with v0.20. Please let us know if anything is missing.
channel_display_groups
#
0.13
SemanticSegmentationGeoDataConfig(channel_display_groups=channel_display_groups)
0.20
SemanticSegmentationGeoDataConfig(plot_options=PlotOptions(channel_display_groups=channel_display_groups))
Reading semantic segmentation labels encoded as RGB files#
0.13
label_source = SemanticSegmentationLabelSourceConfig(
rgb_class_config=class_config,
raster_source=RasterioSourceConfig(uris=[label_uri]))
0.20
label_source = SemanticSegmentationLabelSourceConfig(
raster_source=RasterioSourceConfig(
uris=[label_uri],
transformers=[
RGBClassTransformerConfig(class_config=class_config)
]))
Inferring classes with GeoJSONVectorSourceConfig
#
0.13
vector_source = GeoJSONVectorSourceConfig(
uri=label_uri, default_class_id=0, ignore_crs_field=True)
0.20
vector_source=GeoJSONVectorSourceConfig(
uri=label_uri,
ignore_crs_field=True,
transformers=[ClassInferenceTransformerConfig(default_class_id=0)])
MultiRasterSourceConfig
#
0.13
raster_source = MultiRasterSourceConfig(raster_sources=[
SubRasterSourceConfig(
raster_source=rgbir_source, target_channels=[0, 1, 2, 3]),
SubRasterSourceConfig(
raster_source=elevation_source, target_channels=[4])
])
0.20
raster_source = MultiRasterSourceConfig(
raster_sources=[rgbir_source, elevation_source])
Buffering point and line geometries#
0.13
vector_source = GeoJSONVectorSourceConfig(
uri=label_uri,
default_class_id=0,
ignore_crs_field=True,
line_bufs={0: 15})
0.20
vector_source = GeoJSONVectorSourceConfig(
uri=label_uri,
ignore_crs_field=True,
transformers=[
ClassInferenceTransformerConfig(default_class_id=0),
BufferTransformerConfig(
geom_type='LineString', class_bufs={0: 15}),
BufferTransformerConfig(geom_type='Point'),
])