GXSURFACE class¶
-
class
GXSURFACE
(handle=0)[source]¶ GXSURFACE class.
The
GXSURFACE
class allows you to create, read and alter Geosurface files (*.geosoft_surface
). A Geosurface file can contain one or more surface items (seeGXSURFACEITEM
class). In turn each item can contains one or more triangular polyhedral meshes.-
add_surface_item
(surfaceitem)[source]¶ Add a new surface item to the
GXSURFACE
- Parameters
surfaceitem (GXSURFACEITEM) –
GXSURFACEITEM
to add
New in version 8.4.
License: Geosoft Open License
-
classmethod
append_vulcan_triangulation
(triangulation_file, ipj, surface_file)[source]¶ Create new surface from a Maptek Vulcan triangulation file and add to an existing geosurface.
- Parameters
triangulation_file (str) – 00t file
surface_file (str) – Geosurface file
New in version 8.4.
License: Geosoft End-User License
-
classmethod
crc
(surface_file, output, crc)[source]¶ Compute an XML CRC of a Geosurface file.
- Parameters
surface_file (str) – Geosurface file
output (str) – Output file
crc (int_ref) – CRC (unused, always set to 0)
- Returns
CRC Value (always 0)
- Return type
int
New in version 8.0.
License: Geosoft Open License
-
classmethod
create
(surface_file, ipj)[source]¶ Create a new Geosurface file
- Parameters
- Returns
GXSURFACE
Object- Return type
New in version 8.4.
License: Geosoft Open License
-
classmethod
create_from_dxf
(ipj, surface_file, dxf_file)[source]¶ Create Geosurface file from DXF file.
- Parameters
surface_file (str) – Geosurface file
dxf_file (str) – DXF file
New in version 8.2.
License: Geosoft Open License
-
classmethod
create_from_vulcan_triangulation
(triangulation_file, ipj, surface_file)[source]¶ Create Geosurface file from a Maptek Vulcan triangulation file.
- Parameters
triangulation_file (str) – 00t file
surface_file (str) – Geosurface file
New in version 8.4.
License: Geosoft End-User License
-
classmethod
dump_geometry_to_text_file
(surface_filename, text_filename)[source]¶ Dump surface geometry to a text file.
- Parameters
surface_filename (str) – Geosurface file
text_filename (str) – Text file
New in version 9.4.
License: Geosoft Open License
-
classmethod
get_closed_surface_names
(surface_file, lst)[source]¶ Get the names of closed surface items in a Geosurface file (may return an empty list)
- Parameters
New in version 8.0.
License: Geosoft Open License
-
get_extents
(min_x, min_y, min_z, max_x, max_y, max_z)[source]¶ Get the spatial range of all surface items.
- Parameters
New in version 8.5.
License: Geosoft Open License
-
get_ipj
(ipj)[source]¶ Get the coordinate system of the
GXSURFACE
.New in version 8.4.
License: Geosoft Open License
-
get_surface_item
(guid)[source]¶ Get the an existing surface item from the
GXSURFACE
- Parameters
guid (str) – Item GUID
- Returns
GXSURFACEITEM
Object- Return type
New in version 8.4.
License: Geosoft Open License
-
get_surface_items
(lst)[source]¶ Get the surfaces items in a Geosurface file
New in version 8.4.
License: Geosoft Open License
-
classmethod
get_surface_names
(surface_file, lst)[source]¶ Get the surface item names in a Geosurface file
New in version 8.0.
License: Geosoft Open License
-
is_null
()[source]¶ Check if this is a null (undefined) instance
- Returns
True if this is a null (undefined) instance, False otherwise.
- Return type
bool
-
classmethod
open
(surface_file, mode)[source]¶ Open a Geosurface file
- Parameters
surface_file (str) – Geosurface file name
mode (int) – SURFACE_OPEN constants
- Returns
GXSURFACE
Object- Return type
New in version 8.4.
License: Geosoft Open License
-
set_ipj
(ipj)[source]¶ Change the coordinate system of the
GXSURFACE
.New in version 8.4.
License: Geosoft Open License
-
classmethod
sync
(name)[source]¶ Syncronize the Metadata for this Geosurface
- Parameters
name (str) – Geosurface file
New in version 8.0.
License: Geosoft Open License
-