 | CDUGetAngledBoundingRectangle Method |
Return the angled bounding rectangle for data to be gridded on an angle.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void GetAngledBoundingRectangle(
CDB db,
int xCh,
int yCh,
int mCh,
double azimuth,
ref double x1,
ref double y1,
ref double x2,
ref double y2,
ref double x3,
ref double y3,
ref double x4,
ref double y4
)
public static void GetAngledBoundingRectangle(
CDB db,
int xCh,
int yCh,
int mCh,
double azimuth,
ref double x1,
ref double y1,
ref double x2,
ref double y2,
ref double x3,
ref double y3,
ref double x4,
ref double y4
)
Public Shared Sub GetAngledBoundingRectangle (
db As CDB,
xCh As Integer,
yCh As Integer,
mCh As Integer,
azimuth As Double,
ByRef x1 As Double,
ByRef y1 As Double,
ByRef x2 As Double,
ByRef y2 As Double,
ByRef x3 As Double,
ByRef y3 As Double,
ByRef x4 As Double,
ByRef y4 As Double
)
Public Shared Sub GetAngledBoundingRectangle (
db As CDB,
xCh As Integer,
yCh As Integer,
mCh As Integer,
azimuth As Double,
ByRef x1 As Double,
ByRef y1 As Double,
ByRef x2 As Double,
ByRef y2 As Double,
ByRef x3 As Double,
ByRef y3 As Double,
ByRef x4 As Double,
ByRef y4 As Double
)
public:
static void GetAngledBoundingRectangle(
CDB^ db,
int xCh,
int yCh,
int mCh,
double azimuth,
double% x1,
double% y1,
double% x2,
double% y2,
double% x3,
double% y3,
double% x4,
double% y4
)
public:
static void GetAngledBoundingRectangle(
CDB^ db,
int xCh,
int yCh,
int mCh,
double azimuth,
double% x1,
double% y1,
double% x2,
double% y2,
double% x3,
double% y3,
double% x4,
double% y4
)
static member GetAngledBoundingRectangle :
db : CDB *
xCh : int *
yCh : int *
mCh : int *
azimuth : float *
x1 : float byref *
y1 : float byref *
x2 : float byref *
y2 : float byref *
x3 : float byref *
y3 : float byref *
x4 : float byref *
y4 : float byref -> unit
static member GetAngledBoundingRectangle :
db : CDB *
xCh : int *
yCh : int *
mCh : int *
azimuth : float *
x1 : float byref *
y1 : float byref *
x2 : float byref *
y2 : float byref *
x3 : float byref *
y3 : float byref *
x4 : float byref *
y4 : float byref -> unit
Parameters
- db
- Type: GeoEngine.Core.GXNetCDB
Database - xCh
- Type: SystemInt32
X channel [<define>DB_LOCK_READONLY</define>] - yCh
- Type: SystemInt32
Y channel [<define>DB_LOCK_READONLY</define>] - mCh
- Type: SystemInt32
Data or mask channel [<define>DB_LOCK_READONLY</define>] - azimuth
- Type: SystemDouble
Input Azimuth Angle - degrees CW from North - x1
- Type: SystemDouble
Returned Corner 1 - X - y1
- Type: SystemDouble
Returned Corner 1 - Y - x2
- Type: SystemDouble
Returned Corner 2 - X - y2
- Type: SystemDouble
Returned Corner 2 - Y - x3
- Type: SystemDouble
Returned Corner 3 - X - y3
- Type: SystemDouble
Returned Corner 3 - Y - x4
- Type: SystemDouble
Returned Corner 4 - X - y4
- Type: SystemDouble
Returned Corner 4 - Y
Remarks
Especially if the survey lines do not run N-S or E-W, gridding parallel to the XY axes
results in up to half the gridding area being dummies (padding), which is not only
inefficient, but affects processes like filtering.
This routine returns the rotated extents rectangle for a given gridding azimuth.
The data is rotated CCW by the input azimuth. The N-S and E-W extents of the rotated
data are determined and the bounding points rotated back by the input azimuth to locate
the angled bounding rectangle around the input data. As with GetGriddingAzimuthToMinimizePadding_DU
the extents are padded in each direction by 1% of the maximum height/width
Operates on all selected lines.
See Also