Click or drag to resize

ICoordinateTransformationTransform Method (IntPtr, IntPtr, Int32, Int32, Double, Double)

Transforms a set of coordinates.

Namespace:  Ptv.Components.Projections.Proj4
Assembly:  Ptv.Components.Projections (in Ptv.Components.Projections.dll) Version: 1.7.10.0
Syntax
int Transform(
	IntPtr src,
	IntPtr dst,
	int cnt,
	int ofs,
	double[] x,
	double[] y
)

Parameters

src
Type: SystemIntPtr
The source projection.
dst
Type: SystemIntPtr
The target projection.
cnt
Type: SystemInt32
Number of coordinates.
ofs
Type: SystemInt32
Index of the first coordinate to transform.
x
Type: SystemDouble
Array containing the x-coordinates.
y
Type: SystemDouble
Array containing the y-coordinates.

Return Value

Type: Int32
Zero on success, a PROJ.4 error code otherwise.
Remarks
If no error occurred, the specified arrays contain the transformed coordinates on return.
See Also