Click or drag to resize

CDUClosestPoint Method

Return closest data point to input location.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static void ClosestPoint(
	CDB db,
	double x,
	double y,
	ref double xp,
	ref double yp,
	ref int line,
	ref double fid
)

public static void ClosestPoint(
	CDB db,
	double x,
	double y,
	ref double xp,
	ref double yp,
	ref int line,
	ref double fid
)

Parameters

db
Type: GeoEngine.Core.GXNetCDB
x
Type: SystemDouble
X location
y
Type: SystemDouble
Y location
xp
Type: SystemDouble
Located X location
yp
Type: SystemDouble
Located Y location
line
Type: SystemInt32
Line for located point
fid
Type: SystemDouble
Fiducial of located point
Remarks
Selected lines are scanned for the (X, Y) location which is closest to the input location. The line and fiducial of the point are returned. Will register an error if no valid (X, Y) locations are found.
See Also