systemed / potlatch3

OpenStreetMap editor for desktop
Other
26 stars 5 forks source link

Overpass #7

Open DaveF63 opened 3 years ago

DaveF63 commented 3 years ago

I'm having problems with OP routines. The 'bbox' appears to return a much larger area than the area zoomed into: https://www.openstreetmap.org/#map=19/51.37920/-2.38023

On running the routine P3's screen turns pale yellow & hangs for a few seconds where I'm unable to move the P3 window. It does display the 'task' box with the back & forward buttons & the way's ids and I can click through the results but the screen stays yellow.

Example: [out:json][bbox:51.2892,-2.5241,51.4691,-2.236]; way[railway=platform]; out geom;


On selecting 'Edit with Remote Control, could P3's window be forced to the front?

DaveF[

mmd-osm commented 3 years ago

out geom; uses an Overpass specific OSM XML format extension. I doubt Potlatch can parse this format. I'm getting the following error message "Couldn't load the map: The latitudes must be between -90 and 90, longitudes between -180 and 180 and the minima must be less than the maxima."

Try this one instead:

[out:json][bbox:51.2892,-2.5241,51.4691,-2.236];
way[railway=platform];
(._;>;);
out meta;
systemed commented 3 years ago

Yep - P3 expects a lat/lon to be present in the Overpass result. That happens by default for nodes, out center will do it for ways, and as @mmd-osm says out meta does too.

The "Insert bbox" button inserts a bounding box around the current centre point, with the radius you specify in the adjacent text field. This defaults to 10km but you can adjust it to anything you like.

I'll write some docs for the Overpass integration in due course but have been concentrating on getting P3 out the door first. :)