Skip to content

RasterContentType

Namespace: ThinkGeo.Core

Describes the semantic type of raster content in a layer.

public enum RasterContentType

Inheritance objectValueTypeEnumRasterContentType
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Remarks:

This value represents the underlying data characteristics (e.g., photographic imagery, cartographic tiles, or categorical data), not how the layer is rendered.

It is primarily used when a layer is rasterized (for example, when rendering to an off-screen image, tile cache, or export surface) to select appropriate default sampling behavior. It has no effect on direct vector drawing paths.

Applications may use this hint to choose suitable image sampling strategies, such as preserving sharp edges for cartographic tiles or applying filtered resampling for photographic imagery.

Fields

Name Value Description
Unspecified 0 No content-specific defaults.
CartographicTiles 1 Cartographic map tiles rendered as raster (roads, labels, sharp edges).
Imagery 2 Photographic imagery (satellite/aerial photos).
CategoricalRaster 3 Discrete / categorical rasters where each pixel represents a category id
(e.g., land cover classes). Filtering can mix categories, so nearest-neighbor
is typically preferred.
ContinuousRaster 4 Continuous-valued rasters (e.g., elevation, hillshade, heatmaps).