gdal.CoordinateTransformation
Object for transforming between coordinate systems.
Table of Contents
- Methods
Constructor
gdal.CoordinateTransformation
(
-
source -
target
Parameters:
-
sourcegdal.SpatialReference -
targetgdal.SpatialReference | gdal.DatasetIf a raster Dataset, the conversion will represent a conversion to pixel coordinates.
Methods
transformPoint
(
Object
-
x -
y -
z
Transform point from source to destination space.
Parameters:
-
xNumber -
yNumber -
[z]Number optional
Returns:
Object:
A regular object containing x, y, z properties.
Example:
pt = transform.transformPoint(0, 0, 0);
pt = transform.transformPoint({x: 0, y: 0, z: 0});`