GXGEOSTRING class

class GXGEOSTRING(handle=0)

GXGEOSTRING class.

The GXGEOSTRING 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(lst)

Get the all shapes

Parameters:lst (GXLST) – GXLST to fill

New in version 8.4.

License: Geosoft Open License

get_feature_properties(guid, name, description, polygon, pat_number, pat_size, pat_thick, pat_density, pat_color, pat_bg_color, line_style, line_thickness, line_pitch, line_color)

Get a feature’s properties

Parameters:

New in version 8.4.

License: Geosoft Open License

get_features(lst)

Get the features

Parameters:lst (GXLST) – GXLST to fill

New in version 8.4.

License: Geosoft Open License

Note: List items are returned with feature GUID in name and feature name in value.

get_ipj(ipj)

Get the coordinate system of the Geostring.

Parameters:ipj (GXIPJ) – GXIPJ in which to place the Geostring coordinate system

New in version 8.4.

License: Geosoft Open License

get_section_properties(guid, name, container_name, orientation, easting, northing, elevation, azimuth, swing, a, b, c, d)

Get a section’s properties

Parameters:

New in version 8.4.

License: Geosoft Open License

get_sections(lst)

Get the sections

Parameters:lst (GXLST) – GXLST to fill

New in version 8.4.

License: Geosoft Open License

Note: List items are returned with section GUID in name and section name in value.

get_shape_properties(guid, feature_guid, section_guid, vert_v_vx, vert_v_vy, vert_v_vz)

Get a shape’s properties

Parameters:
  • guid (str) – Shape GUID
  • feature_guid (str_ref) – Feature GUID
  • section_guid (str_ref) – Section GUID
  • vert_v_vx (GXVV) – Vertices X location
  • vert_v_vy (GXVV) – Vertices Y location
  • vert_v_vz (GXVV) – Vertices Z location

New in version 8.4.

License: Geosoft Open License

get_shapes_for_feature(guid, lst)

Get all shapes linked to a specific feature

Parameters:
  • guid (str) – Feature GUID
  • lst (GXLST) – GXLST to fill

New in version 8.4.

License: Geosoft Open License

get_shapes_for_feature_and_section(feature_guid, section_guid, lst)

Get all shapes linked to a specific feature and section

Parameters:
  • feature_guid (str) – Feature GUID
  • section_guid (str) – Section GUID
  • lst (GXLST) – GXLST to fill

New in version 8.4.

License: Geosoft Open License

get_shapes_for_section(guid, lst)

Get all shapes linked to a specific section

Parameters:
  • guid (str) – Section GUID
  • lst (GXLST) – GXLST to fill

New in version 8.4.

License: Geosoft Open License

is_null()

Check if this is a null (undefined) instance

Returns:True if this is a null (undefined) instance, False otherwise.
Return type:bool
classmethod null()

A null (undefined) instance of GXGEOSTRING

Returns:A null GXGEOSTRING
Return type:GXGEOSTRING
classmethod open(geostring_file, mode)

Open a Geostring file

Parameters:
Returns:

GXGEOSTRING Object

Return type:

GXGEOSTRING

New in version 8.4.

License: Geosoft Open License

GEOSTRING_OPEN constants

Open Modes

GEOSTRING_OPEN_READ

Read

gxapi.GEOSTRING_OPEN_READ = 0
GEOSTRING_OPEN_READWRITE

Readwrite

gxapi.GEOSTRING_OPEN_READWRITE = 1

SECTION_ORIENTATION constants

Section orientation types

SECTION_ORIENTATION_UNKNOWN

Unknown

gxapi.SECTION_ORIENTATION_UNKNOWN = 0
SECTION_ORIENTATION_PLAN

Plan

gxapi.SECTION_ORIENTATION_PLAN = 1
SECTION_ORIENTATION_SECTION

Section

gxapi.SECTION_ORIENTATION_SECTION = 2
SECTION_ORIENTATION_CROOKED

Crooked

gxapi.SECTION_ORIENTATION_CROOKED = 2
SECTION_ORIENTATION_GMSYS

Gmsys

gxapi.SECTION_ORIENTATION_GMSYS = 2