Click or drag to resize
CDUClosestPoint Method
Return closest data point to input location.

Available since Oasis montaj version: 6.2
License: Available to anyone with an Oasis Montaj license.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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.
Syntax
public static void ClosestPoint(
	CGXNETCore gxNetShared,
	CDB db,
	double x,
	double y,
	ref double xp,
	ref double yp,
	ref int line,
	ref double fid
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
db
Type: GeoEngine.Core.GXNetXCDB
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
See Also