0

I have an overpass query that queries municipalities in a specific region.

[out:json];
rel["de:amtlicher_gemeindeschluessel"~"01[0-9]{6}"];
out tags bb;

The JSON output includes the bounding boxes for the elements as shown here:

...
    "type": "relation",
      "id": 27020,
      "bounds": {
        "minlat": 54.7517986,
        "minlon": 9.3572980,
        "maxlat": 54.8370717,
        "maxlon": 9.5068117
      },
      "tags": { ...

I would like to have the output as CSV. Here is an example that returns the centerpoints.

[out:csv(
  ::id, 
  "de:amtlicher_gemeindeschluessel", 
  wikipedia, 
  ::lat, 
  ::lon
 )];
rel["de:amtlicher_gemeindeschluessel"~"01[0-9]{6}"];
out tags bb;

Is it possible to formulate the query so that the bounding box is delivered - i.e. 4 columns: minlat minlon maxlat maxlon?

3
  • json will do this example overpass-turbo.eu/s/25ut [not sure csv will] Commented Jun 4 at 20:57
  • Thanks Mapperz for your answer. This corresponds to my first example link, which works fine. I am afraid that the CSV output for the bounding box is not possible. In the documentation “List of fieldnames” bounds is not listed. Commented Jun 8 at 18:51
  • Please do not post "Thanks" as an answer. GIS SE uses a Focused question/Best answer model. Non-answer Answers are likely to be deleted. Commented Jun 8 at 19:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.