From 4f7c0ebd85ccd8c1853d7aa0147628f7c1b749cc Mon Sep 17 00:00:00 2001 From: Jacob Fenton Date: Wed, 14 Oct 2020 16:46:46 -0700 Subject: [PATCH] Fix table name in spatialite example command (#1022) The example query for creating a new point geometry seems to be using a table called 'museums' but at one point it instead uses 'events'. I *believe* it is intended to be museums. --- docs/spatialite.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spatialite.rst b/docs/spatialite.rst index 58179e70..e71bf340 100644 --- a/docs/spatialite.rst +++ b/docs/spatialite.rst @@ -65,7 +65,7 @@ Here's a recipe for taking a table with existing latitude and longitude columns, conn.execute("SELECT AddGeometryColumn('museums', 'point_geom', 4326, 'POINT', 2);") # Now update that geometry column with the lat/lon points conn.execute(''' - UPDATE events SET + UPDATE museums SET point_geom = GeomFromText('POINT('||"longitude"||' '||"latitude"||')',4326); ''') # Now add a spatial index to that column