Click or drag to resize
CEMAPiDigitizePolygon Method
Same as iDigitze2_EMAP, but automatically close polygons.

Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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.
Syntax
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.
See Also