ogstools.ogs6py.geo module#
- class ogstools.ogs6py.geo.Geo[source]#
Bases:
BuildTree,StorageBaseClass managing the geometry file (.gml) for an OGS project.
Tracks both the XML reference to the geometry and the actual file, enabling proper save/copy operations.
Initialize a Geo object.
- Parameters:
tree (
ElementTree) – The Project’s XML ElementTree (shared reference)source_path – Path to the source .gml file (if known)
- __init__(tree, id=None)[source]#
Initialize a Geo object.
- Parameters:
tree (
ElementTree) – The Project’s XML ElementTree (shared reference)source_path – Path to the source .gml file (if known)
- add_geometry(file_pathname)[source]#
Add/set a geometry file.
- Parameters:
filename – The file path and name of the gml file
- Return type: