|
string | RasterDataTypeToString (int type) |
| Common functions independent to clsRasterData. More...
|
|
RasterDataType | StringToRasterDataType (const string &stype) |
| Convert string to RasterDataType.
|
|
RasterDataType | TypeToRasterDataType (const std::type_info &t) |
| Convert C++ data type to RasterDataType.
|
|
double | DefaultNoDataByType (RasterDataType type) |
| Default NoData value by data type.
|
|
GDALDataType | CvtToGDALDataType (const RasterDataType type) |
|
STRDBL_MAP | InitialHeader () |
| Initialize header information in double.
|
|
void | CopyHeader (const STRDBL_MAP &refers, STRDBL_MAP &dst) |
| Copy header information from one to another. More...
|
|
STRING_MAP | InitialStrHeader () |
| Initialize header information in string.
|
|
void | UpdateStrHeader (STRING_MAP &strheader, const string &key, const string &val) |
| Update header information in string.
|
|
RasterDataType | RasterDataTypeInOptionals (const STRING_MAP &opts) |
| Get output raster data type from optional inputs.
|
|
void | InitialStatsMap (STRDBL_MAP &stats, map< string, double * > &stats2d) |
| Initialize statistics values for 1D and 2D raster data.
|
|
bool | WriteAscHeaders (const string &filename, const STRDBL_MAP &header) |
| Write raster header information into a ASC file. More...
|
|
template<typename T > |
void | UpdateHeader (STRDBL_MAP &header, const string &key, T val) |
| Update value in header information.
|
|
template<typename T > |
bool | ReadAscFile (const string &filename, STRDBL_MAP &header, T *&values) |
| Read raster data from ASC file, the simply usage. More...
|
|
template<typename T > |
bool | WriteSingleAsc (const string &filename, const STRDBL_MAP &header, T *values) |
| Write raster data as a single ASC file. More...
|
|
template<typename T > |
bool | ReadRasterFileByGdal (const string &filename, STRDBL_MAP &header, T *&values, RasterDataType &in_type, string &srs) |
| Read single raster file by GDAL. More...
|
|
template<typename T > |
bool | WriteSingleGeotiff (const string &filename, const STRDBL_MAP &header, const STRING_MAP &opts, T *values) |
| Write single geotiff file If the file exists, delete it first. More...
|
|
template<typename T > |
bool | WriteRasterToFile (const string &filename, const STRDBL_MAP &header, const STRING_MAP &opts, T *values) |
| Write single raster file, if the file exists, delete it first. More...
|
|
template<typename T > |
bool | ReadGridFsFile (MongoGridFs *gfs, const string &filename, T *&data, STRDBL_MAP &header, STRING_MAP &header_str, const STRING_MAP &opts) |
| Read GridFs file from MongoDB. More...
|
|
template<typename T > |
bool | WriteStreamDataAsGridfs (MongoGridFs *gfs, const string &filename, STRDBL_MAP &header, T *values, const int datalength, const STRING_MAP &opts=STRING_MAP()) |
| Write array data (both valid and full-sized raster data) as GridFS file. More...
|
|
|
CONST_CHARS | HEADER_RS_NODATA = "NODATA_VALUE" |
|
CONST_CHARS | HEADER_RS_XLL = "XLLCENTER" |
| NoData value.
|
|
CONST_CHARS | HEADER_RS_YLL = "YLLCENTER" |
| X coordinate value of left low center.
|
|
CONST_CHARS | HEADER_RS_XLLCOR = "XLLCORNER" |
| Y coordinate value of left low center.
|
|
CONST_CHARS | HEADER_RS_YLLCOR = "YLLCORNER" |
| X coordinate value of left low center.
|
|
CONST_CHARS | HEADER_RS_NROWS = "NROWS" |
| Y coordinate value of left low center.
|
|
CONST_CHARS | HEADER_RS_NCOLS = "NCOLS" |
| Rows number.
|
|
CONST_CHARS | HEADER_RS_CELLSIZE = "CELLSIZE" |
| Column number.
|
|
CONST_CHARS | HEADER_RS_LAYERS = "LAYERS" |
| Cell size (length)
|
|
CONST_CHARS | HEADER_RS_CELLSNUM = "CELLSNUM" |
| Layers number.
|
|
CONST_CHARS | HEADER_RS_SRS = "SRS" |
| Number of the first layer's valid cells.
|
|
CONST_CHARS | HEADER_RS_PARAM_ABSTRACTION_TYPE = "PARAM_ABSTRACTION_TYPE" |
| SRS.
|
|
CONST_CHARS | HEADER_RS_DATATYPE = "DATATYPE" |
| spatial parameter type, physical or conceptual
|
|
CONST_CHARS | HEADER_RSOUT_DATATYPE = "DATATYPE_OUT" |
| Data type of original raster.
|
|
CONST_CHARS | HEADER_INC_NODATA = "INCLUDE_NODATA" |
| Desired output data type of raster.
|
|
CONST_CHARS | HEADER_MASK_NAME = "MASK_NAME" |
| Include nodata ("TRUE") or not ("FALSE"), for DB only.
|
|
CONST_CHARS | STATS_RS_VALIDNUM = "VALID_CELLNUMBER" |
| Mask layer's name if only store valid values.
|
|
CONST_CHARS | STATS_RS_MEAN = "MEAN" |
| Valid cell number.
|
|
CONST_CHARS | STATS_RS_MIN = "MIN" |
| Mean value.
|
|
CONST_CHARS | STATS_RS_MAX = "MAX" |
| Minimum value.
|
|
CONST_CHARS | STATS_RS_STD = "STD" |
| Maximum value.
|
|
CONST_CHARS | STATS_RS_RANGE = "RANGE" |
| Standard derivation value.
|
|
CONST_CHARS | ASCIIExtension = "asc" |
| Range value.
|
|
CONST_CHARS | GTiffExtension = "tif" |
| ASCII extension.
|
|
Raster class to handle various raster data.