Installation¶
nimgeos requires a working installation of libgeos_c at both compile time and runtime. The GEOS C library provides the geometry engine that all operations delegate to.
Prerequisites¶
macOS¶
Debian / Ubuntu¶
Fedora / RHEL¶
Windows¶
Windows support is experimental. GEOS binaries can be obtained from vcpkg, conda-forge, or by building from source.
With the MSVC toolchain the linker must find the import library (geos_c.lib) through the LIB environment variable and geos_c.dll through PATH โ with vcpkg those are the installed\<triplet>\lib and installed\<triplet>\bin directories. With MinGW, libgeos_c must be on the linker's search path (-lgeos_c).
Verify the installation¶
Confirm that geos-config is on your PATH and reports a version:
If this command fails, the GEOS development headers are not installed or geos-config is not on PATH.
Install the nimble package¶
Add to a project¶
Add the dependency to your .nimble file:
Platform support¶
| Platform | Status |
|---|---|
| Ubuntu LTS | โ Supported |
| macOS | โ Supported |
| Windows | ๐งช Experimental |
Build documentation¶
Output is written to src/htmldocs/.