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
Jacob Fenton 2020-10-14 16:46:46 -07:00 zatwierdzone przez GitHub
rodzic 7f2edb5dd2
commit 4f7c0ebd85
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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