GXGEOSTRING class

class geosoft.gx.GXGEOSTRING
The GEOSTRING class is used to read information stored in Geostring files (*.geosoft_string). Geosoft geostrings are 3D vector files that store digitized interpretations drawn on section maps. Both polygon and polyline features can be stored in the same file. This API currently only provides read access, but read/write support could be added in the future.            
get_all_shapes((GXLST)arg1) → None:
Get the all shapes
Parameters:arg1 (geosoft.gx.GXLST) – LST to fill
Returns:Nothing
Return type:None

New in version 8.4.0.

get_feature_properties((str)arg1, (str_ref)arg2, (str_ref)arg3, (bool_ref)arg4, (int_ref)arg5, (float_ref)arg6, (float_ref)arg7, (float_ref)arg8, (int_ref)arg9, (int_ref)arg10, (int_ref)arg11, (float_ref)arg12, (float_ref)arg13, (int_ref)arg14) → None:
Get a feature's properties
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.4.0.

get_features((GXLST)arg1) → None:
Get the features
Parameters:arg1 (geosoft.gx.GXLST) – LST to fill
Returns:Nothing
Return type:None

New in version 8.4.0.

Note:

List items are returned with feature GUID in name and feature name in value.
get_ipj((GXIPJ)arg1) → None:
Get the coordinate system of the Geostring.
Parameters:arg1 (geosoft.gx.GXIPJ) – IPJ in which to place the Geostring coordinate system
Returns:Nothing
Return type:None

New in version 8.4.0.

get_section_properties((str)arg1, (str_ref)arg2, (str_ref)arg3, (int_ref)arg4, (float_ref)arg5, (float_ref)arg6, (float_ref)arg7, (float_ref)arg8, (float_ref)arg9, (float_ref)arg10, (float_ref)arg11, (float_ref)arg12, (float_ref)arg13) → None:
Get a section's properties
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.4.0.

get_sections((GXLST)arg1) → None:
Get the sections
Parameters:arg1 (geosoft.gx.GXLST) – LST to fill
Returns:Nothing
Return type:None

New in version 8.4.0.

Note:

List items are returned with section GUID in name and section name in value.
get_shape_properties((str)arg1, (str_ref)arg2, (str_ref)arg3, (GXVV)arg4, (GXVV)arg5, (GXVV)arg6) → None:
Get a shape's properties
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.4.0.

get_shapes_for_feature((str)arg1, (GXLST)arg2) → None:
Get all shapes linked to a specific feature
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.4.0.

get_shapes_for_feature_and_section((str)arg1, (str)arg2, (GXLST)arg3) → None:
Get all shapes linked to a specific feature and section
Parameters:
  • arg1 (str) – Feature GUID
  • arg2 (str) – Section GUID
  • arg3 (geosoft.gx.GXLST) – LST to fill
Returns:

Nothing

Return type:

None

New in version 8.4.0.

get_shapes_for_section((str)arg1, (GXLST)arg2) → None:
Get all shapes linked to a specific section
Parameters:
Returns:

Nothing

Return type:

None

New in version 8.4.0.

is_null() → bool

Check if the instance of geosoft.gx.GXGEOSTRING is null (undefined)

Returns:True if this is a null instance of geosoft.gx.GXGEOSTRING, False otherwise.
Return type:bool`
static null() → GXGEOSTRING

A null (undefined) instance of geosoft.gx.GXGEOSTRING

Returns:A null geosoft.gx.GXGEOSTRING
Return type:geosoft.gx.GXGEOSTRING
static open((GXContext)ctx, (str)arg1, (int)arg2) → GXGEOSTRING:
Open a Geostring file
Parameters:
Returns:

GEOSTRING Object

Return type:

geosoft.gx.GXGEOSTRING

New in version 8.4.0.

GEOSTRING_OPEN constants

Open Modes
gx.GEOSTRING_OPEN_READ = 0
gx.GEOSTRING_OPEN_READWRITE = 1

SECTION_ORIENTATION constants

Section orientation types
gx.SECTION_ORIENTATION_UNKNOWN = 0
gx.SECTION_ORIENTATION_PLAN = 1
gx.SECTION_ORIENTATION_SECTION = 2
gx.SECTION_ORIENTATION_CROOKED = 2
gx.SECTION_ORIENTATION_GMSYS = 2