 | 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
Syntaxpublic 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
)
Public Shared Sub ClosestPoint (
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 Shared Sub ClosestPoint (
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(
CDB^ db,
double x,
double y,
double% xp,
double% yp,
int% line,
double% fid
)
public:
static void ClosestPoint(
CDB^ db,
double x,
double y,
double% xp,
double% yp,
int% line,
double% fid
)
static member ClosestPoint :
db : CDB *
x : float *
y : float *
xp : float byref *
yp : float byref *
line : int byref *
fid : float byref -> unit
static member ClosestPoint :
db : CDB *
x : float *
y : float *
xp : float byref *
yp : float byref *
line : int byref *
fid : float byref -> unit
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