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

Some areas are not generating on my local overpass server. This results in queries using "is_in" and "map_to_area" not giving the proper results. One such area is the area corresponding to this relation (Nicaragua province, NI-AS). Running an "is_in" query with features inside of this province does not return the area, and "map_to_area" using that relation does not return an area either.

The area creation script ran without error and there's many other areas that are working fine, so I'm lost as to why this area would not exist for me. I don't think this is due to any broken geometry of the relation either, since it does not show up as such.

I've tried re-running the area creation script and downloading an extract of Nicaragua and applying it to the database, neither of which did anything. Here's the query that I've been running as I've tried to fix this (gives proper results using a public server but no results on my private one):

nwr["ISO3166-2"="NI-AS"];
map_to_area;
out geom;

Any help would be appreciated, thank you!

asked 24 Sep '21, 21:34

nbreden's gravatar image

nbreden
266610
accept rate: 0%


It's unclear what your problem is. What output are you expecting, & what are you receiving?

area["ISO3166-2"="NI-AS"];
out geom;

and

rel["ISO3166-2"="NI-AS"];
map_to_area;
out geom;

both return the data below, as expected, using OPT.

alt text

This returns the geometry

rel["ISO3166-2"="NI-AS"];
out geom;
permanent link

answered 25 Sep '21, 15:40

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

Sorry if it was unclear, I'm saying that the above queries return nothing on my local server and I don't know how to fix it. The reason for this, I assume, is that the area for NI-AS does not exist on my local server.

(27 Sep '21, 16:56) nbreden
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
×118

question asked: 24 Sep '21, 21:34

question was seen: 977 times

last updated: 27 Sep '21, 16:56

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