On 12/10/23 16:14, Bob Cameron wrote:
A question for an overpass expert.
I am cleaning up a lot of the parking tags I have created so they
follow the same rules etc. I have successfully generated a text list
of nodes where I can cut/paste the co-ords into the ID editor to
research/fix as needed. This was done with a gpsbabel command line on
the exported gpx into unicsv.
Way/area tags are not so simple. gpsbbel yields zero output. Is there
function in overpass that will just extract the first node of the way,
or possibly the centre co-ords of the polygon? That will be good
enough to get me close enough.
No expert ...
Question: why only get the node when you can have the whole thing? I
think that just adds complexity?
Me? I'd simply get all of it .. For a way (closed or open)
[out:xml][timeout:90][bbox:{{bbox}}];
(
way(user:"bobC")["amenity"="parking"];
);
(._;>;);
out meta;
For relations - replace 'way' with 'relation' ...
Replace 'bobC' with the user name that you want..
_______________________________________________
Talk-au mailing list
Talk-au@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-au