gdal.CoordinateTransformation
Object for transforming between coordinate systems.
Table of Contents
- Methods
Constructor
gdal.CoordinateTransformation
(
-
source
-
target
Parameters:
-
source
gdal.SpatialReference -
target
gdal.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:
-
x
Number -
y
Number -
[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});`