Click or drag to resize

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
Syntax
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 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
)

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