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
)
Function Transform (
src As IntPtr,
dst As IntPtr,
cnt As Integer,
ofs As Integer,
x As Double(),
y As Double()
) As Integer
int Transform(
IntPtr src,
IntPtr dst,
int cnt,
int ofs,
array<double>^ x,
array<double>^ y
)
abstract Transform :
src : IntPtr *
dst : IntPtr *
cnt : int *
ofs : int *
x : float[] *
y : float[] -> int
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:
Int32Zero on success, a PROJ.4 error code otherwise.
Remarks
If no error occurred, the specified arrays contain the transformed coordinates on return.
See Also