39 #ifndef __OPENFLUID_LANDR_RASTERDATASET_HPP__
40 #define __OPENFLUID_LANDR_RASTERDATASET_HPP__
43 #include "gdal_priv.h"
44 #include <ogrsf_frmts.h>
48 namespace geos {
namespace geom {
70 GDALDataset* mp_Dataset;
75 double* mp_GeoTransform;
80 std::map<unsigned int, openfluid::landr::VectorDataset*> mp_PolygonizedByRasterBandIndex;
85 void computeGeoTransform();
110 GDALDataset* source();
115 GDALDataset* source()
const;
122 GDALRasterBand* rasterBand(
unsigned int RasterBandIndex = 1);
129 std::pair<int, int> getPixelFromCoordinate(geos::geom::Coordinate Coo);
134 geos::geom::Coordinate* computeOrigin();
139 double getPixelWidth();
144 double getPixelHeight();
152 std::vector<float> getValuesOfLine(
int LineIndex,
153 unsigned int RasterBandIndex = 1);
160 std::vector<float> getValuesOfColumn(
int ColIndex,
161 unsigned int RasterBandIndex = 1);
170 float getValueOfPixel(
int ColIndex,
172 unsigned int RasterBandIndex = 1);
180 float getValueOfCoordinate(geos::geom::Coordinate Coo,
181 unsigned int RasterBandIndex = 1);
195 std::string FieldName =
"",
196 unsigned int RasterBandIndex = 1);
198 static std::string getDefaultPolygonizedFieldName();
203 OGREnvelope envelope();
Interface for managing Vector Data format.
Definition: VectorDataset.hpp:64
Definition: GeoRasterValue.hpp:55
#define OPENFLUID_API
Definition: dllexport.hpp:87
Interface for managing Raster Data format.
Definition: RasterDataset.hpp:63