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, 08:17

sang3's gravatar image

sang3
26337
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, 12:35

maxerickson's gravatar image

maxerickson
9.4k866134
accept rate: 31%

Your answer
toggle preview

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:

×12

question asked: 12 May, 08:17

question was seen: 167 times

last updated: 13 May, 12:35

powered by OSQA