Classes
Type Definitions
-
GDALMetadata{Object}
-
Properties:
Name Type Description STATISTICS_MINIMUMstring The minimum value (as a string).
STATISTICS_MAXIMUMstring The maximum value (as a string).
-
GeoKeys{Object}
-
Properties:
Name Type Description GTModelTypeGeoKeynumber Model type.
GTRasterTypeGeoKeynumber Raster type.
GeogAngularUnitsGeoKeynumber Angular units.
GeogInvFlatteningGeoKeynumber Inverse flattening.
GeogSemiMajorAxisGeoKeynumber Semi-major axis.
GeographicTypeGeoKeynumber Geographic coordinate system code.
ProjLinearUnitsGeoKeynumber Projected linear unit code.
ProjectedCSTypeGeoKeynumber Projected coordinate system code.
-
GeoTIFF{Object}
-
Properties:
Name Type Description getImageCountfunction Get the number of internal subfile images.
getImagefunction Get the image at the specified index.
-
GeoTIFFImage{Object}
-
Properties:
Name Type Description fileDirectoryObject The file directory.
geoKeysmodule:ol/source/GeoTIFF~GeoKeys The parsed geo-keys.
littleEndianboolean Uses little endian byte order.
tilesObject The tile cache.
isTiledboolean The image is tiled.
getBoundingBoxfunction Get the image bounding box.
getOriginfunction Get the image origin.
getResolutionfunction Get the image resolution.
getWidthfunction Get the pixel width of the image.
getHeightfunction Get the pixel height of the image.
getTileWidthfunction Get the pixel width of image tiles.
getTileHeightfunction Get the pixel height of image tiles.
getGDALNoDatafunction Get the nodata value (or null if none).
getGDALMetadatafunction Get the raster stats (or null if none).
getSamplesPerPixelfunction Get the number of samples per pixel.
-
MultiGeoTIFF{Object}
-
Properties:
Name Type Description getImageCountfunction Get the number of internal subfile images.
getImagefunction Get the image at the specified index.
-
Options{Object}
-
Properties:
Name Type Argument Default Description sourcesArray.<module:ol/source/GeoTIFF~SourceInfo> List of information about GeoTIFF sources. Multiple sources can be combined when their resolution sets are equal after applying a scale. The list of sources defines a mapping between input bands as they are read from each GeoTIFF and the output bands that are provided by data tiles. To control which bands to read from each GeoTIFF, use the
bandsproperty. If, for example, you specify two sources, one with 3 bands andnodataconfigured, and another with 1 band, the resulting data tiles will have 5 bands: 3 from the first source, 1 alpha band from the first source, and 1 band from the second source.convertToRGBboolean <optional>
false By default, bands from the sources are read as-is. When reading GeoTIFFs with the purpose of displaying them as RGB images, setting this to
truewill convert other color spaces (YCbCr, CMYK) to RGB.normalizeboolean <optional>
true By default, the source data is normalized to values between 0 and 1 with scaling factors based on the raster statistics or
minandmaxproperties of each source. If instead you want to work with the raw values in a style expression, set this tofalse. Setting this option tofalsewill make it so anyminandmaxproperties on sources are ignored.opaqueboolean <optional>
false Whether the layer is opaque.
transitionnumber <optional>
250 Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.wrapXboolean <optional>
false Render tiles beyond the tile grid extent.
interpolateboolean <optional>
true Use interpolated values when resampling. By default, the linear interpolation is used to resample the data. If false, nearest neighbor is used.
-
SourceInfo{Object}
-
Properties:
Name Type Argument Default Description urlstring URL for the source GeoTIFF.
overviewsArray.<string> <optional>
List of any overview URLs.
minnumber <optional>
0 The minimum source data value. Rendered values are scaled from 0 to 1 based on the configured min and max. If not provided and raster statistics are available, those will be used instead. If neither are available, the minimum for the data type will be used. To disable this behavior, set the
normalizeoption tofalsein the constructor.maxnumber <optional>
The maximum source data value. Rendered values are scaled from 0 to 1 based on the configured min and max. If not provided and raster statistics are available, those will be used instead. If neither are available, the maximum for the data type will be used. To disable this behavior, set the
normalizeoption tofalsein the constructor.nodatanumber <optional>
Values to discard (overriding any nodata values in the metadata). When provided, an additional alpha band will be added to the data. Often the GeoTIFF metadata will include information about nodata values, so you should only need to set this property if you find that it is not already extracted from the metadata.
bandsArray.<number> <optional>
Band numbers to be read from (where the first band is
1). If not provided, all bands will be read. For example, if a GeoTIFF has blue (1), green (2), red (3), and near-infrared (4) bands, and you only need the near-infrared band, configurebands: [4].
OpenLayers