Metadata-Version: 2.4
Name: geodms
Version: 20.26.0
Summary: GeoDMS, an open-source platform for spatial models over large grid, vector and attribute data
License-Expression: GPL-3.0-or-later
License-File: license.txt
License-File: third-party/README.txt
License-File: third-party/arrow.txt
License-File: third-party/boost.txt
License-File: third-party/brotli.txt
License-File: third-party/bzip2.txt
License-File: third-party/cgal.txt
License-File: third-party/curl.txt
License-File: third-party/expat.txt
License-File: third-party/fftw3.txt
License-File: third-party/freexl.txt
License-File: third-party/gdal.txt
License-File: third-party/geos.txt
License-File: third-party/giflib.txt
License-File: third-party/gmp.txt
License-File: third-party/hdf5.txt
License-File: third-party/json-c.txt
License-File: third-party/lerc.txt
License-File: third-party/libaec.txt
License-File: third-party/libgeotiff.txt
License-File: third-party/libiconv.txt
License-File: third-party/libjpeg-turbo.txt
License-File: third-party/libkml.txt
License-File: third-party/liblzma.txt
License-File: third-party/libpng.txt
License-File: third-party/libpq.txt
License-File: third-party/libspatialite.txt
License-File: third-party/libwebp.txt
License-File: third-party/libxml2.txt
License-File: third-party/lz4.txt
License-File: third-party/minizip.txt
License-File: third-party/mpfr.txt
License-File: third-party/netcdf-c.txt
License-File: third-party/nlohmann-json.txt
License-File: third-party/openjpeg.txt
License-File: third-party/openssl.txt
License-File: third-party/pcre2.txt
License-File: third-party/proj.txt
License-File: third-party/pybind11.txt
License-File: third-party/qhull.txt
License-File: third-party/rapidjson.txt
License-File: third-party/snappy.txt
License-File: third-party/sqlite3.txt
License-File: third-party/thrift.txt
License-File: third-party/tiff.txt
License-File: third-party/tinyxml2.txt
License-File: third-party/xsimd.txt
License-File: third-party/zlib.txt
License-File: third-party/zstd.txt
Requires-Python: >=3.12
Project-URL: Homepage, https://www.geodms.nl
Project-URL: Documentation, https://github.com/ObjectVision/GeoDMS/wiki/Python-bindings
Project-URL: Source, https://github.com/ObjectVision/GeoDMS
Project-URL: Issues, https://github.com/ObjectVision/GeoDMS/issues
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: GIS
Description-Content-Type: text/markdown

# geodms

This package makes the GeoDMS engine available as a Python module. [GeoDMS](https://www.geodms.nl) is an open-source platform for spatial models over large grid, vector and attribute data, written as configurations in its own `.dms` language. With this module a Python script loads such a configuration, finds its items, changes an expression and reads the calculated values back, in the same process.

```
pip install geodms
```

There are wheels for 64-bit Windows and CPython 3.12, 3.13 and 3.14. Each holds the engine and the libraries it uses (GDAL, PROJ, GEOS, Arrow and others) under names of their own, so that they can be loaded in the same process as the GDAL, PROJ and SQLite of QGIS or of Python itself. The GDAL and PROJ data and the GeoDMS `library` folder are included.

```python
import geodms

engine = geodms.Engine()                         # one per process
config = engine.load_config("model.dms")         # keep this object: the items live as long as it does
item = config.const_root().find("/results/total").asDataItem()
item.update()                                    # calculates the item and what it depends on
print(item.get_value_as_float(0))
```

A process has one `Engine` and one loaded configuration at a time.

The functions of the module are described on the wiki page [Python bindings](https://github.com/ObjectVision/GeoDMS/wiki/Python-bindings), and [GeoDMS through Python](https://github.com/ObjectVision/GeoDMS/wiki/GeoDMS-through-Python) compares this module with the other ways to combine GeoDMS and Python. The source is on [GitHub](https://github.com/ObjectVision/GeoDMS). GeoDMS is licensed under the GPL, version 3 or later; the licence texts of the bundled libraries are in the `.dist-info/licenses` folder of the wheel.

In this release one case is refused. When a DLL called `gdal.dll` from another folder, such as that of a GeoDMS setup, is already loaded, `import geodms` stops with an error. A script that imports geodms before it loads the other GDAL does not have this problem.
