mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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.
This commit is contained in:
parent
7f2edb5dd2
commit
4f7c0ebd85
1 changed files with 1 additions and 1 deletions
|
|
@ -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);")
|
conn.execute("SELECT AddGeometryColumn('museums', 'point_geom', 4326, 'POINT', 2);")
|
||||||
# Now update that geometry column with the lat/lon points
|
# Now update that geometry column with the lat/lon points
|
||||||
conn.execute('''
|
conn.execute('''
|
||||||
UPDATE events SET
|
UPDATE museums SET
|
||||||
point_geom = GeomFromText('POINT('||"longitude"||' '||"latitude"||')',4326);
|
point_geom = GeomFromText('POINT('||"longitude"||' '||"latitude"||')',4326);
|
||||||
''')
|
''')
|
||||||
# Now add a spatial index to that column
|
# Now add a spatial index to that column
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue