GXKML class¶
- class GXKML(handle=0)[source]¶
GXKML class.
GXKML
functions provide an interface KML (Keyhole markup language) files.Note:
None.
- classmethod import_3d_line_path(mview, name, vv_vx, vv_vy, vv_vz, color, extruded)[source]¶
Imports a KML 3D LinePath into a provided view.
- Parameters:
mview (GXMVIEW) –
GXMVIEW
object - the (3d) view to import the LinePath into.name (str) – The name of the resulting LinePath group.
vv_vx (GXVV) – X Vertex Components - VV of GS_REAL
vv_vy (GXVV) – Y Vertex Components - VV of GS_REAL
vv_vz (GXVV) – Z Vertex Components - VV of GS_REAL
color (int) – The colour of the resulting surface - COL_ANY.
extruded (bool) – Extrude the LinePath to the base - BOOL.
- Return type:
int
New in version 9.10.
License: Geosoft Open License
Note: Requirements – The MVIEW must be 3D and valid (see
GXMVIEW.is_view_3d
);- The group name must not be null/empty;- The three VV for vector components must contain vertices, and be of equal length.
- classmethod import_3d_polygon(mview, name, vv_vx, vv_vy, vv_vz, color, extruded)[source]¶
Imports a KML 3D polygon into a provided view.
- Parameters:
mview (GXMVIEW) –
GXMVIEW
object - the (3d) view to import the polygon into.name (str) – The name of the resulting polygon group.
vv_vx (GXVV) – X Vertex Components - VV of GS_REAL
vv_vy (GXVV) – Y Vertex Components - VV of GS_REAL
vv_vz (GXVV) – Z Vertex Components - VV of GS_REAL
color (int) – The colour of the resulting surface - COL_ANY.
extruded (bool) – Extrude the polygon to the base - BOOL.
- Return type:
int
New in version 9.10.
License: Geosoft Open License
Note: Requirements – The MVIEW must be 3D and valid (see
GXMVIEW.is_view_3d
);- The group name must not be null/empty;- The three VV for vector components must contain vertices, and be of equal length.
KML_ALT constants¶
KML Altitude values.