Click or drag to resize

CEMAPiDigitizePolygon Method

Same as iDigitze2_EMAP, but automatically close polygons.

Namespace:  Geosoft.Desktop.GXNetX
Assembly:  geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntax
public int iDigitizePolygon(
	CVV vvx,
	CVV vvy,
	CVV vvz,
	CIMG img,
	string prompt,
	int newline,
	int pixel_radius
)

public int iDigitizePolygon(
	CVV vvx,
	CVV vvy,
	CVV vvz,
	CIMG img,
	string prompt,
	int newline,
	int pixel_radius
)

Parameters

vvx
Type: GeoEngine.Core.GXNetXCVV
Real X VV
vvy
Type: GeoEngine.Core.GXNetXCVV
Real Y VV
vvz
Type: GeoEngine.Core.GXNetXCVV
Real Z VV
img
Type: GeoEngine.Core.GXNetXCIMG
IMG for Z value, or <define>IMG_NULL</define> for no Z.
prompt
Type: SystemString
Command line prompt string
newline
Type: SystemInt32
0 for no newline 1 for automatic newline at each point
pixel_radius
Type: SystemInt32
Close the polygon if the selected location is within this radius in screen pixels.

Return Value

Type: Int32
0 if user digitized some points. 1 if user cancelled.
Remarks
This is the same as iDigitize2_EMAP, except that it automatically detects, (except for the 2nd and 3rd points) when a selected location is within the entered number of pixels from the starting point. If yes, the polygon is assumed to be closed, and the operation is the same as the RMB "done" command, and the process returns 0.
See Also