Commit a528eac2 authored by Simon Willison's avatar Simon Willison
Browse files

Don't allow sort-by-Geometry

parent d482be4b
......@@ -6,6 +6,11 @@
"source_url": "https://github.com/evansiroky/timezone-boundary-builder",
"databases": {
"timezones": {
"tables": {
"timezones": {
"sortable_columns": ["tzid"]
}
},
"queries": {
"by_point": "select tzid\nfrom\n timezones\nwhere\n within(GeomFromText('POINT(' || :longitude || ' ' || :latitude || ')'), timezones.Geometry)\n and rowid in (\n SELECT pkid FROM idx_timezones_Geometry\n where xmin < :longitude\n and xmax > :longitude\n and ymin < :latitude\n and ymax > :latitude\n )"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment