OpenHistoricalMap / issues

File your issues here, regardless of repo until we get all our repos squared away; we don't want to miss anything.
Creative Commons Zero v1.0 Universal
18 stars 1 forks source link

Overpass API timing out in enclosing feature query #457

Open jeffreyameyer opened 2 years ago

jeffreyameyer commented 2 years ago

Bug description What is happening? When you use the query features tool on ohm: image

It's generating an error: image

But... Overpass Turbo seems to be working fine: image

Of note, this appears to be happening whether there are or are not enclosing features for the point selected.

What should be happening? No error message & a return of a list of some (or none) enclosing boundary features.

Repro Steps Please provide detailed instructions to reproduce the behavior:

  1. Go to ohm.org
  2. Click on the query features green pointer on the right-hand toolset
  3. Zoom in to an appropriately high zoom level
  4. Click on the map
  5. See error in the Query Features left-nav
1ec5 commented 2 years ago

The “Nearby Features” section runs a relatively inexpensive query%3B%0Aout%20tags%20geom(37.3378%2C-121.8985%2C37.3468%2C-121.8735)%3B%0Arelation(around%3A33.75%2C37.3422%2C-121.8953)%3B%0Aout%20geom(37.3378%2C-121.8985%2C37.3468%2C-121.8735)%3B&C=37.342274;-121.895061;18):

[timeout:10][out:json];
(
  node(around:33.75,37.3422,-121.8953);
  way(around:33.75,37.3422,-121.8953);
);
out tags geom(37.3378,-121.8985,37.3468,-121.8735);
relation(around:33.75,37.3422,-121.8953);
out geom(37.3378,-121.8985,37.3468,-121.8735);

By contrast, the “Enclosing Features” section runs a different query that makes use of areas:

[timeout:10][out:json];
is_in(37.3422,-121.8953)->.a;
way(pivot.a);
out tags bb;
out ids geom(37.3378,-121.8985,37.3468,-121.8735);
relation(pivot.a);
out tags bb;

When I run it directly in Overpass turbo, I get this error:

runtime error: The dispatcher (i.e. the database management system) is turned off.

danrademacher commented 1 year ago

This is also tracked in #480