2 #include <isce3/except/Error.h>
4 namespace isce3 {
namespace product {
11 double geoGridSpacingX,
double geoGridSpacingY,
12 int width,
int height,
int epsgcode);
14 void startX(
double x0) { _startX = x0; }
16 void startY(
double y0) { _startY = y0; }
18 void spacingX(
double dx) { _spacingX = dx; }
20 void spacingY(
double dy) { _spacingY = dy; }
22 void length(
int l) { _length = l; };
24 void width(
int w) { _width = w; };
26 void epsg(
int e) { _epsg = e; };
29 double startX()
const {
return _startX; };
32 double startY()
const {
return _startY; };
40 int width()
const {
return _width; };
42 int length()
const {
return _length; };
44 int epsg()
const {
return _epsg; };
54 double _spacingX = 0.0;
57 double _spacingY = 0.0;
70 isce3::product::GeoGridParameters::GeoGridParameters(
71 double geoGridStartX,
double geoGridStartY,
double geoGridSpacingX,
72 double geoGridSpacingY,
int width,
int length,
int epsgcode)
77 _startX(geoGridStartX + geoGridSpacingX / 2),
81 _startY(geoGridStartY + geoGridSpacingY / 2),
84 _spacingX(geoGridSpacingX),
87 _spacingY(geoGridSpacingY),
98 if (geoGridSpacingY > 0.0) {
99 std::string errmsg =
"Y spacing can not be positive.";
double spacingX() const
Get.
Definition: GeoGridParameters.h:35
double startX() const
Get.
Definition: GeoGridParameters.h:29
double spacingY() const
Get.
Definition: GeoGridParameters.h:38
Definition: GeoGridParameters.h:6
double startY() const
Get.
Definition: GeoGridParameters.h:32