createFromFiles static method
- required List<
Uri> filePaths, - required int band,
- SpatialReference? spatialReference,
Creates a boolean field from one or more raster files.
If a spatial reference is not 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 float (32-bit or 64-bit). Boolean values are derived as true when the source value is non-zero. Returns an error if creation of a BooleanField is unsuccessful.
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.
Return Value: A BooleanField created from raster files, or an error if creation of a BooleanField is unsuccessful.