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

I've searched for a bit and can't find answers. Help!! and thanks!

I would like to query Overpass to find the total number of nodes associated with roads within the boundaries of a city - my challenge is to retrieve this number without also pulling the actual data? Another way to state this: I'd like Overpass to give me the number of nodes, but not bog down or result in time-outs, which happens for even small cities. I think this could conserve a lot of bandwidth.

Second question: how could I perform this query together for multiple cities and output as a csv or similar file? Again, without transferring actual data to my browser?

Thank you

asked 17 Mar '16, 14:30

rnodesertgrad's gravatar image

rnodesertgrad
31113
accept rate: 0%

edited 17 Mar '16, 16:00


Have a look at the documentation Overpass_QL#Counting_of_elements ...

Success?

permanent link

answered 17 Mar '16, 16:28

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

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:

×483
×228
×147

question asked: 17 Mar '16, 14:30

question was seen: 3,428 times

last updated: 17 Mar '16, 16:28

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