Interface for managing Raster Data format.
More...
#include <landr/RasterDataset.hpp>
Interface for managing Raster Data format.
◆ RasterDataset() [1/2]
Create a virtual (in memory) copy of Value GDALDataset.
- Parameters
-
Value | The GeoRasterValue to copy |
- Exceptions
-
◆ RasterDataset() [2/2]
openfluid::landr::RasterDataset::RasterDataset |
( |
const RasterDataset & |
Other | ) |
|
Copy constructor.
- Exceptions
-
◆ ~RasterDataset()
openfluid::landr::RasterDataset::~RasterDataset |
( |
| ) |
|
Delete the virtual GDALDataset.
◆ computeOrigin()
geos::geom::Coordinate* openfluid::landr::RasterDataset::computeOrigin |
( |
| ) |
|
◆ envelope()
OGREnvelope openfluid::landr::RasterDataset::envelope |
( |
| ) |
|
◆ getDefaultPolygonizedFieldName()
static std::string openfluid::landr::RasterDataset::getDefaultPolygonizedFieldName |
( |
| ) |
|
|
static |
◆ getPixelFromCoordinate()
std::pair<int, int> openfluid::landr::RasterDataset::getPixelFromCoordinate |
( |
geos::geom::Coordinate |
Coo | ) |
|
Returns the column and line index of a pixel from the coordinate of the pixel.
- Parameters
-
Coo | A geos::geom::Coordinate. |
- Returns
- A pair of the column and line index of the pixel in this RasterDataset.
◆ getPixelHeight()
double openfluid::landr::RasterDataset::getPixelHeight |
( |
| ) |
|
◆ getPixelWidth()
double openfluid::landr::RasterDataset::getPixelWidth |
( |
| ) |
|
◆ getValueOfCoordinate()
float openfluid::landr::RasterDataset::getValueOfCoordinate |
( |
geos::geom::Coordinate |
Coo, |
|
|
unsigned int |
RasterBandIndex = 1 |
|
) |
| |
Returns the pixel value with coordinate.
- Parameters
-
Coo | The geos::geom::Coordinate. |
RasterBandIndex | The raster band index (default is 1). |
- Returns
- The pixel value.
◆ getValueOfPixel()
float openfluid::landr::RasterDataset::getValueOfPixel |
( |
int |
ColIndex, |
|
|
int |
LineIndex, |
|
|
unsigned int |
RasterBandIndex = 1 |
|
) |
| |
Returns the pixel value with column and line index.
- Parameters
-
ColIndex | The column index. |
LineIndex | The line index. |
RasterBandIndex | The raster band index (default is 1). |
- Returns
- The pixel value.
◆ getValuesOfColumn()
std::vector<float> openfluid::landr::RasterDataset::getValuesOfColumn |
( |
int |
ColIndex, |
|
|
unsigned int |
RasterBandIndex = 1 |
|
) |
| |
Returns a vector of the pixel values of a column of this RasterDataset.
- Parameters
-
ColIndex | The column index to get the pixel values. |
RasterBandIndex | The raster band index (default is 1). |
- Returns
- A vector of pixel values.
◆ getValuesOfLine()
std::vector<float> openfluid::landr::RasterDataset::getValuesOfLine |
( |
int |
LineIndex, |
|
|
unsigned int |
RasterBandIndex = 1 |
|
) |
| |
Returns a vector of the pixel values of a line of this RasterDataset.
- Parameters
-
LineIndex | The line index to get the pixel values. |
RasterBandIndex | The raster band index (default is 1). |
- Returns
- A vector of pixel values.
◆ polygonize()
openfluid::landr::VectorDataset* openfluid::landr::RasterDataset::polygonize |
( |
const std::string & |
FileName, |
|
|
std::string |
FieldName = "" , |
|
|
unsigned int |
RasterBandIndex = 1 |
|
) |
| |
Creates a new VectorDataset with polygons for all connected regions of pixels in the raster sharing a common pixel value.
Use openfluid::landr::VectorDataset::copyToDisk() to keep this vectorDataset on disk
- Parameters
-
FileName | The name of the new VectorDataset. |
FieldName | The name of the field to be created for storing the pixel value, limited to 10 characters (or will be truncated). Default is set to "PixelVal". Type of field is OFTReal . |
RasterBandIndex | The raster band index (default is 1). |
- Returns
- The newly created VectorDataset.
◆ rasterBand()
GDALRasterBand* openfluid::landr::RasterDataset::rasterBand |
( |
unsigned int |
RasterBandIndex = 1 | ) |
|
Gets the RasterBand indexed with RasterBandIndex of the dataset.
Is owned by its dataset, should never be destroyed with the C++ delete operator.
- Parameters
-
RasterBandIndex | The rasterBand to get, default 1 |
◆ source() [1/2]
GDALDataset* openfluid::landr::RasterDataset::source |
( |
| ) |
|
◆ source() [2/2]
GDALDataset* openfluid::landr::RasterDataset::source |
( |
| ) |
const |
The documentation for this class was generated from the following file: