I’m trying to use overpass turbo to extract data from OSM so that I can feed it to leaflet.js for display on a map. I’m exporting the data from overpass turbo as geojson. This does exactly what I want where the relation does not contain any members of type ‘point’:
// Comrie to Saline Link
rel(18276419);
out geom;
However, if there are points in the relation, as well as ways, then it outputs extra 'feature’s for each point, as returned by:
// Fife Coastal Path
rel(7776868);
out geom;
How can I stop the points being output?
Marek-M
(Marek-M)
2
Try to use that query - I think that you are looking for:
// Fife Coastal Path
rel(7776868);
out;
way(r);
out geom skel;
overpass query
Many thanks - that’s done exactly what I wanted! Can’t believe it was that simple - I’ve been playing about with it for a couple of hours and got nowhere. I guess I need to have a careful look at how this all works.
1 Like