#include <RasterImporter.h>
Definition at line 40 of file RasterImporter.h.
Enumerator |
---|
kPolynomial |
|
kThinPlateSpline |
|
Definition at line 42 of file RasterImporter.h.
42 { kPolynomial, kThinPlateSpline };
import_export::GCPTransformer::GCPTransformer |
( |
OGRDataSource * |
datasource, |
|
|
const Mode |
mode = Mode::kPolynomial |
|
) |
| |
|
explicit |
Definition at line 47 of file RasterImporter.cpp.
50 auto const gcp_count = datasource->GetGCPCount();
51 auto const* gcp_list = datasource->GetGCPs();
54 static constexpr
int kPolynomialOrder = 2;
56 GDALCreateGCPTransformer(gcp_count, gcp_list, kPolynomialOrder,
false);
60 transform_arg_ = GDALCreateTPSTransformer(gcp_count, gcp_list,
false);
import_export::GCPTransformer::GCPTransformer |
( |
| ) |
|
|
delete |
import_export::GCPTransformer::~GCPTransformer |
( |
| ) |
|
void import_export::GCPTransformer::transform |
( |
double & |
x, |
|
|
double & |
y |
|
) |
| |
Definition at line 78 of file RasterImporter.cpp.
References kPolynomial, kThinPlateSpline, mode_, and transform_arg_.
82 GDALGCPTransform(
transform_arg_,
false, 1, &x, &y,
nullptr, &success);
85 GDALTPSTransform(
transform_arg_,
false, 1, &x, &y,
nullptr, &success);
89 throw std::runtime_error(
"Failed GCP/TPS Transform");
Mode import_export::GCPTransformer::mode_ |
|
private |
void* import_export::GCPTransformer::transform_arg_ |
|
private |
The documentation for this class was generated from the following files: