MCPcopy Create free account
hub / github.com/PDAL/PDAL / reproject

Function reproject

pdal/private/gdal/GDALUtils.cpp:75–79  ·  view source on GitHub ↗

Reproject a point from a source projection to a destination. \param x X coordinate of point to be reprojected in-place. \param y Y coordinate of point to be reprojected in-place. \param z Z coordinate of point to be reprojected in-place. \param srcSrs Source SRS \param dstSrs Destination SRS \return Whether the reprojection was successful or not. */

Source from the content-addressed store, hash-verified

73 \return Whether the reprojection was successful or not.
74*/
75bool reproject(double& x, double& y, double& z, const SpatialReference& srcSrs,
76 const SpatialReference& dstSrs)
77{
78 return SrsTransform(srcSrs, dstSrs).transform(x, y, z);
79}
80
81
82/**

Callers

nothing calls this directly

Calls 2

SrsTransformClass · 0.50
transformMethod · 0.45

Tested by

no test coverage detected