Hi there,

when running this overpass query, all postal_code relations in Germany are returned except for one (78266, relation id 3375856).

[out:json];
area[admin_level="2"][type="boundary"]["ISO3166-1"="DE"]->.country;
relation(area.country)[boundary="postal_code"];
out tags;

Without the area filter, the relation is found and returned. However, I don't want to (and cannot) process all postal_code relations, I only want to get the german ones.

Is there something wrong with Overpass/OSM or am I doing something wrong?

Thanks in advance, Daniel

asked 10 May, 15:44

danielkbx's gravatar image

danielkbx
112
accept rate: 0%

The offending postal_code is of B├╝singen am Hochrhein, a German exclave in Switzerland. The area is included in Germany's admin_level 2 relation.
Maybe there is an issue with the postal code and the country boundary being exactly the same? Just guessing.

(10 May, 19:15) TZorn
Be the first one to answer this question!
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:

×227
×201
×76
×62
×8

question asked: 10 May, 15:44

question was seen: 136 times

last updated: 10 May, 19:15

powered by OSQA