|
CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Various GIS-related functions, requires GDAL. More...
#include <assert.h>#include <cstdio>#include <vector>#include <iostream>#include <cmath>#include <cfloat>#include <climits>#include <cstdint>#include <cstring>#include <gdal.h>#include <gdal_priv.h>#include <cpl_string.h>#include "cme.h"#include "coast.h"#include "raster_grid.h"#include "2d_point.h"#include "2di_point.h"Go to the source code of this file.
Various GIS-related functions, requires GDAL.
Note re. coordinate systems used
To convert between pixel/line (P,L) raster space, and projection coordinates (Xp,Yp) space Xp = padfTransform[0] + padfTransform[1] + padfTransform[2]; Yp = padfTransform[3] + padfTransform[4] + padfTransform[5];
In a north-up image, padfTransform[1] is the pixel width, and padfTransform[5] is the pixel height. The upper left corner of the upper left pixel is at position (padfTransform[0], padfTransform[3]).
Definition in file gis_utils.cpp.