GXARCDB class¶
-
class
geosoft.gx.
GXARCDB
¶ The ARCDB class is used in ArcGIS to access table contents from data sources and layers.
-
create_dat
((str)arg1, (str)arg2, (str)arg3) → GXDAT:¶ Create a handle to a ARCGIS table DAT 2D object
Parameters: - arg1 (str) – Name of X field in table
- arg2 (str) – Name of Y field in table
- arg3 (str) – Name of Data field in table
Returns: DAT, terminates if creation fails
Return type: New in version 8.0.0.
-
create_dat_3d
((str)arg1, (str)arg2, (str)arg3, (str)arg4) → GXDAT:¶ Create a handle to a ARCGIS table DAT 3D object
Parameters: - arg1 (str) – Name of X field in table
- arg2 (str) – Name of Y field in table
- arg3 (str) – Name of Z field in table
- arg4 (str) – Name of Data field in table
Returns: DAT, terminates if creation fails
Return type: New in version 8.0.0.
-
static
current
((GXContext)ctx) → GXARCDB:¶ This method return a handle to the current table
Parameters: ctx ( geosoft.gx.GXContext
) – The GX execution contextReturns: ARCDB Handle, geosoft.gx.GXARCDB.null()
if no table selectedReturn type: geosoft.gx.GXARCDB
New in version 8.0.0.
-
exist_field
((str)arg1) → int:¶ This method checks to see if the specified field exists in the table.
Parameters: arg1 (str) – Name of Field Returns: 0 - Field does not exist 1 - Field Exists Return type: int New in version 8.0.0.
-
export_to_db
((GXDB)arg1, (str)arg2, (str)arg3) → None:¶ Export data from an ARCDB table into a group in a Geosoft GDB using a template.
Parameters: - arg1 (
geosoft.gx.GXDB
) – Database - arg2 (str) – import template name
- arg3 (str) – Oasis montaj line name to create (overrides template value)
Returns: Nothing
Return type: None
New in version 8.0.0.
Note:
1. The import template can be in the local directory or the GEOSOFT directory. 3. If the line already exists, the data will overwrite the existing data.
- arg1 (
-
field_lst
((GXLST)arg1) → None:¶ Place the list of field names in a LST.
Parameters: arg1 ( geosoft.gx.GXLST
) – LSTReturns: Nothing Return type: None New in version 8.0.0.
Note:
If Z or M values are supported by the table geometry the strings "<Z Values>" and "<M Values>" will be added accordingly.
-
static
from_i_unknown
((GXContext)ctx, (int)arg1) → GXARCDB:¶ This method attempts to make a table handle from an IUnknown pointer Returns ARCDB Handle,
geosoft.gx.GXARCDB.null()
if not successfulParameters: - ctx (
geosoft.gx.GXContext
) – The GX execution context - arg1 (int) – IUnknown pointer
Return type: New in version 8.0.0.
- ctx (
-
get_i_unknown
() → int:¶ This method gets the IUnknown pointer
Returns: IUnknown pointer Return type: int New in version 8.0.0.
-
get_ipj
((GXIPJ)arg1) → None:¶ Get georeference information from a table.
Parameters: arg1 ( geosoft.gx.GXIPJ
) – IPJ to fill inReturns: Nothing Return type: None New in version 8.0.0.
Note:
If the table does not have an IPJ, the IPJ that is returned will have an unknown projection.
-
import_chem_database_wizard
((str)arg1, (int)arg2) → int:¶ Template creation for importing geochem data.
Parameters: - arg1 (str) – template to make
- arg2 (int) – IMPCH_TYPE constants
Returns: 0-OK 1-Cancel
Return type: int
New in version 8.0.0.
-
is_null
() → bool¶ Check if the instance of
geosoft.gx.GXARCDB is null (undefined)
Returns: True if this is a null instance of geosoft.gx.GXARCDB
, False otherwise.Return type: bool`
-
static
null
() → GXARCDB¶ A null (undefined) instance of
geosoft.gx.GXARCDB
Returns: A null geosoft.gx.GXARCDB
Return type: geosoft.gx.GXARCDB
-
static
sel_tbl_ex_gui
((GXContext)ctx, (int_ref)arg1) → GXARCDB:¶ Select table GUI with table type.
Parameters: - ctx (
geosoft.gx.GXContext
) – The GX execution context - arg1 (
geosoft.gx.int_ref
) – ARC_SELTBL_TYPE constants
Returns: Handle to the table (Terminate on Error)
Return type: New in version 8.0.0.
- ctx (
-
static
sel_tbl_gui
((GXContext)ctx) → GXARCDB:¶ Select table GUI.
Parameters: ctx ( geosoft.gx.GXContext
) – The GX execution contextReturns: Handle to the table Return type: geosoft.gx.GXARCDB
New in version 8.0.0.
Note:
Terminates with Cancel on cancel, returns ARCDB_NULL if there are no valid tables in current document.
-