Creating a minimal SpatiaLite database with Python
When writing a test for datasette-leaflet-freedraw I realized I didn't have a simple tiny recipe for creating an in-memory SpatiaLite database in Python.
4 posts tagged “spatialite”.
When writing a test for datasette-leaflet-freedraw I realized I didn't have a simple tiny recipe for creating an in-memory SpatiaLite database in Python.
I was playing around with datanews/amtrak-geojson, which provides GeoJSON for Amtrak stations and track segments.
The latest version of SpatiaLite adds KNN support, which makes it easy to efficiently answer the question "what are the X closest records to this point".
I wanted to find potentially duplicate records in my data, based on having the exact same name and being geographically located within 500 meters of each other.