diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index 8d7224e..8a46a1f 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -2441,13 +2441,13 @@ then query which buildings overlap or are contained within a specified region: # IDs that are contained within query coordinates my $contained_sql = <<""; - SELECT id FROM try_rtree + SELECT id FROM city_buildings WHERE minLong >= ? AND maxLong <= ? AND minLat >= ? AND maxLat <= ? # ... and those that overlap query coordinates my $overlap_sql = <<""; - SELECT id FROM try_rtree + SELECT id FROM city_buildings WHERE maxLong >= ? AND minLong <= ? AND maxLat >= ? AND minLat <= ?