createFromFiles

suspend fun createFromFiles(filePaths: Iterable<String>, band: Int, spatialReference: SpatialReference? = null): Result<ContinuousField>

Creates a continuous field from one or more raster files. If no spatial reference is given, the spatial reference of the first raster file is used.

If a spatial reference is given, the raster content is projected into that spatial reference using the most suitable transformation available. Projection transforms only the horizontal coordinate system, not the field values.

Supports reading of all raster pixel types except 64-bit float. Returns an error if creation of a ContinuousField is unsuccessful.

Return

A Result containing a ContinuousField created from raster files, or an error if creation of a ContinuousField is unsuccessful.

Since

300.0.0

Parameters

filePaths

One or more raster file paths.

band

Zero-based index identifying a raster band.

spatialReference

The spatial reference into which to project the raster content.

See also