Skip to content

Commit

Permalink
Fix table name in spatialite example command (#1022)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsfenfen authored Oct 14, 2020
1 parent 7f2edb5 commit 4f7c0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/spatialite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f7c0eb

Please sign in to comment.