Click or drag to resize
CMVUiMapsetTest Method
Test function to ensure parameters to Mapset_MVU is sane

Available since Oasis montaj version: 6.3
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNetX
Assembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.dll)
Notes
Use ShowError_SYS to display errors that may have been encountered. This function can also be used to calculate the default scale without creating a map.
Syntax
public static int iMapsetTest(
	CGXNETCore gxNetShared,
	double min_x,
	double max_x,
	double min_y,
	double max_y,
	string size,
	int port,
	int exact,
	ref double scale,
	double conv,
	double marg_xmin,
	double marg_xmax,
	double marg_ymin,
	double marg_ymax,
	double inside
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
min_x
Type: SystemDouble
Minimum X of data area (data units)
max_x
Type: SystemDouble
Maximum X of data area (data units)
min_y
Type: SystemDouble
Minimum Y of data area (data units)
max_y
Type: SystemDouble
Maximum Y of data area (data units)
size
Type: SystemString
Media size as a string 'x_cm,y_cm', or a standard paper size (e.g. 'A4', 'E')
port
Type: SystemInt32
0 - landscape; 1 - portrait
exact
Type: SystemInt32
1 - map size fixed to media; 0 - map size adjusted to data and margins.
scale
Type: SystemDouble
Map scale (rDummy for default)
conv
Type: SystemDouble
Conversion factor (to units/meter) (rDummy for default)
marg_xmin
Type: SystemDouble
Left margin (cm)
marg_xmax
Type: SystemDouble
Right margin (cm)
marg_ymin
Type: SystemDouble
Bottom margin (cm)
marg_ymax
Type: SystemDouble
Top margin (cm)
inside
Type: SystemDouble
Inside data margin (cm)

Return Value

Type: Int32
True if the parameters are good.
See Also