kopia lustrzana https://github.com/simonw/datasette
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.pull/1029/head
rodzic
7f2edb5dd2
commit
4f7c0ebd85
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue