NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Is it possible to query the sum of fences distances (in kilometers) in the view window or a bounding box of overpass turbo ?

asked 12 May '18, 08:17

sang3's gravatar image

sang3
26557
accept rate: 0%


Here is a quick example. You have to scroll to the bottom of the "data" tab to see the results.

[out:json][timeout:25][bbox:{{bbox}}];
way[barrier=fence];
out geom;
make stats length=sum(length()),section_lengths=set(length());
out;

Script is lightly modified version of the example given in https://github.com/drolbr/Overpass-API/issues/237.

(As far as I know, there is no area evaluator, I see you've asked the similar question about that)

permanent link

answered 13 May '18, 12:35

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×18

question asked: 12 May '18, 08:17

question was seen: 1,279 times

last updated: 13 May '18, 12:35

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum