Added references to headers

This commit is contained in:
Simon Willison 2022-02-03 10:36:12 -08:00 • committed by GitHub
commit b58c9c7e88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2421,37 +2421,35 @@ If that option isn't relevant to your use-case you can to quote a string for use
>>> db.quote("hello'this'has'quotes") >>> db.quote("hello'this'has'quotes")
"'hello''this''has''quotes'" "'hello''this''has''quotes'"
.. _python_api_gis:
Spatialite helpers Spatialite helpers
================== ==================
`SpatiaLite <https://www.gaia-gis.it/fossil/libspatialite/index>`__ is a geographic extension to SQLite (similar to PostgreSQL + PostGIS). Using requires finding, loading and initializing the extension, adding geometry columns to existing tables and optionally creating spatial indexes. The utilities here help streamline that setup. `SpatiaLite <https://www.gaia-gis.it/fossil/libspatialite/index>`__ is a geographic extension to SQLite (similar to PostgreSQL + PostGIS). Using requires finding, loading and initializing the extension, adding geometry columns to existing tables and optionally creating spatial indexes. The utilities here help streamline that setup.
.. _python_api_gis_init_spatialite:
.. _init_spatialite:
Initialize Spatialite Initialize Spatialite
---------------------- ---------------------
.. autofunction:: sqlite_utils.gis.init_spatialite .. autofunction:: sqlite_utils.gis.init_spatialite
.. _python_api_gis_find_spatialite:
.. _find_spatialite:
Finding Spatialite Finding Spatialite
------------------ ------------------
.. autofunction:: sqlite_utils.gis.find_spatialite .. autofunction:: sqlite_utils.gis.find_spatialite
.. _python_api_gis_add_geometry_column:
.. _add_geometry_column:
Adding geometry columns Adding geometry columns
----------------------- -----------------------
.. autofunction:: sqlite_utils.gis.add_geometry_column .. autofunction:: sqlite_utils.gis.add_geometry_column
.. _create_spatial_index: .. _python_api_gis_create_spatial_index:
Creating a spatial index Creating a spatial index
------------------------ ------------------------