Define Raster class to handle raster data Part of the Common Cross-platform Geographic Library (CCGL)
More...
|
string | ccgl::data_raster::RasterDataTypeToString (int type) |
| Common functions independent to clsRasterData. More...
|
|
RasterDataType | ccgl::data_raster::StringToRasterDataType (const string &stype) |
| Convert string to RasterDataType.
|
|
RasterDataType | ccgl::data_raster::TypeToRasterDataType (const std::type_info &t) |
| Convert C++ data type to RasterDataType.
|
|
double | ccgl::data_raster::DefaultNoDataByType (RasterDataType type) |
| Default NoData value by data type.
|
|
GDALDataType | ccgl::data_raster::CvtToGDALDataType (const RasterDataType type) |
|
STRDBL_MAP | ccgl::data_raster::InitialHeader () |
| Initialize header information in double.
|
|
void | ccgl::data_raster::CopyHeader (const STRDBL_MAP &refers, STRDBL_MAP &dst) |
| Copy header information from one to another. More...
|
|
template<typename T > |
void | ccgl::data_raster::UpdateHeader (STRDBL_MAP &header, const string &key, T val) |
| Update value in header information.
|
|
STRING_MAP | ccgl::data_raster::InitialStrHeader () |
| Initialize header information in string.
|
|
void | ccgl::data_raster::UpdateStrHeader (STRING_MAP &strheader, const string &key, const string &val) |
| Update header information in string.
|
|
RasterDataType | ccgl::data_raster::RasterDataTypeInOptionals (const STRING_MAP &opts) |
| Get output raster data type from optional inputs.
|
|
void | ccgl::data_raster::InitialStatsMap (STRDBL_MAP &stats, map< string, double * > &stats2d) |
| Initialize statistics values for 1D and 2D raster data.
|
|
template<typename T > |
bool | ccgl::data_raster::ReadAscFile (const string &filename, STRDBL_MAP &header, T *&values) |
| Read raster data from ASC file, the simply usage. More...
|
|
bool | ccgl::data_raster::WriteAscHeaders (const string &filename, const STRDBL_MAP &header) |
| Write raster header information into a ASC file. More...
|
|
template<typename T > |
bool | ccgl::data_raster::WriteSingleAsc (const string &filename, const STRDBL_MAP &header, T *values) |
| Write raster data as a single ASC file. More...
|
|
template<typename T > |
bool | ccgl::data_raster::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 | ccgl::data_raster::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 | ccgl::data_raster::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 | ccgl::data_raster::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 | ccgl::data_raster::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 | ccgl::data_raster::HEADER_RS_NODATA = "NODATA_VALUE" |
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_XLL = "XLLCENTER" |
| NoData value.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_YLL = "YLLCENTER" |
| X coordinate value of left low center.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_XLLCOR = "XLLCORNER" |
| Y coordinate value of left low center.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_YLLCOR = "YLLCORNER" |
| X coordinate value of left low center.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_NROWS = "NROWS" |
| Y coordinate value of left low center.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_NCOLS = "NCOLS" |
| Rows number.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_CELLSIZE = "CELLSIZE" |
| Column number.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_LAYERS = "LAYERS" |
| Cell size (length)
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_CELLSNUM = "CELLSNUM" |
| Layers number.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_SRS = "SRS" |
| Number of the first layer's valid cells.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_PARAM_ABSTRACTION_TYPE = "PARAM_ABSTRACTION_TYPE" |
| SRS.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RS_DATATYPE = "DATATYPE" |
| spatial parameter type, physical or conceptual
|
|
CONST_CHARS | ccgl::data_raster::HEADER_RSOUT_DATATYPE = "DATATYPE_OUT" |
| Data type of original raster.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_INC_NODATA = "INCLUDE_NODATA" |
| Desired output data type of raster.
|
|
CONST_CHARS | ccgl::data_raster::HEADER_MASK_NAME = "MASK_NAME" |
| Include nodata ("TRUE") or not ("FALSE"), for DB only.
|
|
CONST_CHARS | ccgl::data_raster::STATS_RS_VALIDNUM = "VALID_CELLNUMBER" |
| Mask layer's name if only store valid values.
|
|
CONST_CHARS | ccgl::data_raster::STATS_RS_MEAN = "MEAN" |
| Valid cell number.
|
|
CONST_CHARS | ccgl::data_raster::STATS_RS_MIN = "MIN" |
| Mean value.
|
|
CONST_CHARS | ccgl::data_raster::STATS_RS_MAX = "MAX" |
| Minimum value.
|
|
CONST_CHARS | ccgl::data_raster::STATS_RS_STD = "STD" |
| Maximum value.
|
|
CONST_CHARS | ccgl::data_raster::STATS_RS_RANGE = "RANGE" |
| Standard derivation value.
|
|
CONST_CHARS | ccgl::data_raster::ASCIIExtension = "asc" |
| Range value.
|
|
CONST_CHARS | ccgl::data_raster::GTiffExtension = "tif" |
| ASCII extension.
|
|
Define Raster class to handle raster data Part of the Common Cross-platform Geographic Library (CCGL)
- 1. Using GDAL and MongoDB (currently, up to mongo-c-driver 1.16.2 was tested)
- 2. Array1D and Array2D raster data are supported
- 3. C++11 supported
- 4. Unit Tests based Google Test.
- Author
- Liangjun Zhu, zlj(at)lreis.ac.cn
- Version
- 2.8