RasterResamplingType enum

The resampling policy or method used when sampling or transforming raster data.

Resampling is the process of calculating pixel values when a raster is displayed or queried at a different resolution than its native cell size, or when it is transformed (for example, scaled or reprojected).

Most enumeration values represent resampling methods. The RasterResamplingType.automatic value is a sentinel indicating that the appropriate resampling method should be determined automatically based on the raster properties.

Inheritance
Available extensions

Values

automatic → const RasterResamplingType

Resampling method is determined automatically.

Sentinel value indicating that the appropriate resampling method should be determined automatically.

By default, RasterResamplingType.nearestNeighbor is applied, which preserves data values. For rasters that are known to be continuous in nature, RasterResamplingType.bilinearInterpolation is applied to produce smoother visual transitions.

The resampling method used will be determined when the raster data source is loaded or accessed.

nearestNeighbor → const RasterResamplingType

Uses nearest-neighbor resampling.

Chooses the value of the nearest source cell without interpolation. This preserves original cell values and is typically preferred for categorical or classified data (for example, land cover classes).

bilinearInterpolation → const RasterResamplingType

Uses bilinear interpolation resampling.

Interpolates using adjacent cells to produce a smoother result than nearest neighbor. This is typically preferred for continuous surfaces (for example, elevation or temperature) where visual smoothness is more important than preserving original cell values.

Properties

coreValue → RT_RasterResamplingType
Convert to internal value.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<RasterResamplingType>
A constant List of the values in this enum, in order of their declaration.