![](../icons/Help.png) | 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.GXNetXAssembly: 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.
Syntaxpublic static void ClosestPoint(
CGXNETCore gxNetShared,
CDB db,
double x,
double y,
ref double xp,
ref double yp,
ref int line,
ref double fid
)
Public Shared Sub ClosestPoint (
gxNetShared As CGXNETCore,
db As CDB,
x As Double,
y As Double,
ByRef xp As Double,
ByRef yp As Double,
ByRef line As Integer,
ByRef fid As Double
)
public:
static void ClosestPoint(
CGXNETCore^ gxNetShared,
CDB^ db,
double x,
double y,
double% xp,
double% yp,
int% line,
double% fid
)
static member ClosestPoint :
gxNetShared : CGXNETCore *
db : CDB *
x : float *
y : float *
xp : float byref *
yp : float byref *
line : int byref *
fid : float byref -> unit
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