geosoft.gxpy.spatialdata

Geosoft spatial data base class.

Spatial datasets are collections of geometric objects that have associated data, typically persisting in a named file. Examples are Geosoft databases, grids, voxels, geosoft_surfaces.

Classes:

SpatialData

base class for Geosoft spatial data, inherits from geosoft.gxpy.geometry.Geometry

Constants

mode= file open mode constants

FILE_READ

0

open for read, files are not changed

FILE_READWRITE

1

open for read and write, files can be changed

FILE_NEW

2

new file, accompanied by overwrite= parameter

Functions

_t(s)

coordinate_system_from_metadata(meta)

Return a geosoft.gxpy.coordinate_system.Coordinate_system instance from metadata.

coordinate_system_from_metadata_file(file_name)

Return a geosoft.gxpy.coordinate_system.Coordinate_system instance from metadata.

delete_files(file_name)

Delete file and xml file

extent_from_metadata(meta)

Return spatial dataset extent from geosoft metadata.

extent_from_metadata_file(file_name)

Return spatial dataset extent from file metadata .xml file

find_meta_branch(meta, item)

Return the lowest branch in the meta dictionary that contains the item.

Classes

SpatialData([name, file_name, mode, overwrite])

Base class for spatial datasets.

Exceptions

SpatialException(message)

Exceptions from geosoft.gxpy.spatial_data.