Skip to content

Document populating SpatiaLite points from coordinate columns - #905

Open
ac1982 wants to merge 1 commit into
simonw:mainfrom
ac1982:docs/populate-spatialite-points
Open

ac1982 wants to merge 1 commit into
simonw:mainfrom
ac1982:docs/populate-spatialite-points

Conversation

@ac1982

@ac1982 ac1982 commented Oct 14, 2026 •

Copy link
Copy Markdown

Add Python and CLI recipes for populating a SpatiaLite point column from existing longitude/latitude columns. Cover coordinate order, matching SRIDs, inspecting the result, reloading the extension, and refreshing geometry after coordinate changes. The Python example also links to the existing WKT conversion and spatial-index documentation.

Refs #399. This documents the existing SQL workflow; it does not implement the proposed conversion API.

Validated on Linux/ARM64, Python 3.12, SpatiaLite 5.1: executed the literal examples, checked persisted X/Y/SRID, missing coordinates, updates, mismatched-SRID rollback, spatial indexing, and connection cleanup. Full tests: 1512 passed, 1 skipped. Strict Sphinx build, Cog, formatting, flake8, mypy and pyright passed. ty reports one redundant-cast warning in unchanged db.py; notebooks were skipped by Black because its optional Jupyter dependency is not installed. Other platforms were not run locally.

AI disclosure: OpenAI Codex researched, wrote, reviewed, and tested this contribution. No human review is claimed.


📚 Documentation preview 📚: https://sqlite-utils--905.org.readthedocs.build/en/905/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant