Natural language to spatial geometry — compiles NL to PostGIS, GeoPandas, GeoJSON, DuckDB
Project description
geointent
Natural language → spatial geometry: turn plain-language location questions into PostGIS SQL, GeoPandas / Shapely code, GeoJSON-style filters, or DuckDB spatial SQL.
Install
pip install geointent
import geointent
from geointent import Dialect
engine = geointent.Engine(
llm="claude",
context=geointent.SpatialContext(
schema=geointent.Schema.from_dict({...}),
domain="utility_network",
units="feet",
srid=2965,
),
)
result = engine.translate("manholes within 50 feet of a gas line")
print(result.query)
- PyPI: geointent
- Source: github.com/FultonGeo/geointent
Optional extras: pip install geointent[postgis], [duckdb], [geopandas].
Three common use cases
- Utility / asset network (PostGIS) — Projected CRS (e.g. state plane), mains and structures:
Dialect.POSTGIS(default), parameterized SQL, optionalEngine.executewith your SQLAlchemy connection. - Parcels & zones —
Dialect.GEOJSONorDialect.GEOPANDASfor polygon relationships and buffers. - Overture / GeoParquet (DuckDB) —
Dialect.DUCKDBfor bbox-safe SQL against remote Parquet.
Runnable demos (mock LLM, no API keys): python examples/utility_network.py, examples/overture_duckdb.py, examples/parcel_analysis.py.
Development (venv)
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev,postgis,geopandas]"
python -m pytest tests/ -m "not integration and not live and not realdata"
On macOS/Linux: source .venv/bin/activate.
See TESTING.md for PostGIS Docker setup and pytest tiers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geointent-0.1.1.tar.gz.
File metadata
- Download URL: geointent-0.1.1.tar.gz
- Upload date:
- Size: 30.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2d945df46043599f6205eb05ba977a52c5706370b99e347a0b2fec3f6533b2
|
|
| MD5 |
d7c97b0602eb5bbc27645b5d0a1b2fb2
|
|
| BLAKE2b-256 |
a814a7a68b5f7e8fcb779bc2fdb7820db54a83f4b87fd5d6da7b14fd0f0b4a44
|
Provenance
The following attestation bundles were made for geointent-0.1.1.tar.gz:
Publisher:
workflow.yml on FultonGeo/geointent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geointent-0.1.1.tar.gz -
Subject digest:
ba2d945df46043599f6205eb05ba977a52c5706370b99e347a0b2fec3f6533b2 - Sigstore transparency entry: 1250895409
- Sigstore integration time:
-
Permalink:
FultonGeo/geointent@405a817d9d8c0d05d9591daa8d2fb02bfbbbf1ea -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/FultonGeo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@405a817d9d8c0d05d9591daa8d2fb02bfbbbf1ea -
Trigger Event:
push
-
Statement type:
File details
Details for the file geointent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: geointent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9943c6eee875d95f6f560be2eb218e835d1b2ce0747b74f17c5166aa76d5e58c
|
|
| MD5 |
db4b42a2cd6c648c800d4de857cddbb6
|
|
| BLAKE2b-256 |
6f8202c57e53bf3a6913945b2c3e7cbdef1461cc68f00a3da91379fdef520abe
|
Provenance
The following attestation bundles were made for geointent-0.1.1-py3-none-any.whl:
Publisher:
workflow.yml on FultonGeo/geointent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geointent-0.1.1-py3-none-any.whl -
Subject digest:
9943c6eee875d95f6f560be2eb218e835d1b2ce0747b74f17c5166aa76d5e58c - Sigstore transparency entry: 1250895465
- Sigstore integration time:
-
Permalink:
FultonGeo/geointent@405a817d9d8c0d05d9591daa8d2fb02bfbbbf1ea -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/FultonGeo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@405a817d9d8c0d05d9591daa8d2fb02bfbbbf1ea -
Trigger Event:
push
-
Statement type: