Should return at least the path to the file (either directly or the underlying dataset) and the name of this layer. (Perhaps also a flag whether this is a direct dataset or a layer of a dataset)
Replacement for these previous wrapper functions in the LandscapeLab:
func get_path():
if geo_raster_layer.get_dataset() == null:
return geo_raster_layer.get_name()
return geo_raster_layer.get_dataset().get_path()
func get_name():
if geo_raster_layer.get_dataset() == null:
return geo_raster_layer.get_name().substr(geo_raster_layer.get_name().find_last("/"))
return geo_raster_layer.get_name()
Should return at least the path to the file (either directly or the underlying dataset) and the name of this layer. (Perhaps also a flag whether this is a direct dataset or a layer of a dataset)
Replacement for these previous wrapper functions in the LandscapeLab: