Download Boundaries Data Miss Some Administrative Area

Avatar
  • updated
  • Planned

I want to download china‘s boundaries data, but miss some administrative area, like shanxi, hainan (select country and filter admin level 2 to 4);
But i use map selection to download (select admin level 2 to 4), it work , can download the complete data. (Database 2025-01-06)

Pinned replies
Avatar
Magnus
  • Answer
  • Planned

You have definitely found a bug. Or to be more correct, two bugs. I will create a ticket in our internal system for this. However, we don't work on the site on a regular basis, so it will take some time to fix.

I basically did this:

1. Tried to reproduce what you did to see if I got the same download URLs. I did.
2. Downloaded data with your URLs.
3. Checked number of boundaries per file. The web-ui says 35, so we expect 35 in each file.
4. Your "map selection" URL had 68 boundaries in it. Which is too many.
5. Your "select country" had 66 boundaries in it. Which also is too many.
6. I then started to wonder what boundaries was included that shouldn't be. There wasn't any. Confusing.
7. Counted the number of unique boundaries in "map selection" file. It's 35. So this one has the correct data. However it should not include some of the data twice.

8. Counted the number unique boundaries in the "select country" file. This file only has 33 unique boundaries.

So basically we have two bugs.

1. File include duplicates. Very confusing. A waste of resources when producing, uploading/downloading, processing, and storing.

2. Two polygons are missing in the second file. Just as you stated.

This is obviously not good. But right now I don't have a good answer to why.

I'll leave this post as an Answer (Userecho flag) until it gets fixed. Then we'll reply back again and use that post as an Answer.

Avatar
jiaox wu
Quote from Magnus

An Issue has been created in our internal system. It has ID 252. It actually turned out to be three potential bugs in the end. A real mess, something we shouldn't be proud of in our end. :/

I have asked a developer to at least read through it for now. He has done most of the related code.

Thanks! :)

Avatar
Magnus

An Issue has been created in our internal system. It has ID 252. It actually turned out to be three potential bugs in the end. A real mess, something we shouldn't be proud of in our end. :/

I have asked a developer to at least read through it for now. He has done most of the related code.

Avatar
Magnus
  • Answer
  • Planned

You have definitely found a bug. Or to be more correct, two bugs. I will create a ticket in our internal system for this. However, we don't work on the site on a regular basis, so it will take some time to fix.

I basically did this:

1. Tried to reproduce what you did to see if I got the same download URLs. I did.
2. Downloaded data with your URLs.
3. Checked number of boundaries per file. The web-ui says 35, so we expect 35 in each file.
4. Your "map selection" URL had 68 boundaries in it. Which is too many.
5. Your "select country" had 66 boundaries in it. Which also is too many.
6. I then started to wonder what boundaries was included that shouldn't be. There wasn't any. Confusing.
7. Counted the number of unique boundaries in "map selection" file. It's 35. So this one has the correct data. However it should not include some of the data twice.

8. Counted the number unique boundaries in the "select country" file. This file only has 33 unique boundaries.

So basically we have two bugs.

1. File include duplicates. Very confusing. A waste of resources when producing, uploading/downloading, processing, and storing.

2. Two polygons are missing in the second file. Just as you stated.

This is obviously not good. But right now I don't have a good answer to why.

I'll leave this post as an Answer (Userecho flag) until it gets fixed. Then we'll reply back again and use that post as an Answer.

Avatar
jiaox wu
Quote from Magnus

Could you help us by doing this:
1. Make your map selection.

2. Press the Permalink button below the tree.

3. Copy and keep that link.

4. Go into the Download form.

5. Copy the url in there.

6. Post both the Permalink and the download url. Make sure that you remove/mask your access token from the download url.

Download Url :
1. Use map selection
2. Select country


Permalink:
https://osm-boundaries.com/l/fd6aa5b6a41d9739b574505223f4299471a7ed38

Avatar
Magnus
Quote from jiaox wu

Thank you for your reply. What I mean is that downloading data under the same conditions but in different ways on osm-boundaries.com will result in different data (use map selection or select country). One result is complete, while the other is missing some data.

Could you help us by doing this:
1. Make your map selection.

2. Press the Permalink button below the tree.

3. Copy and keep that link.

4. Go into the Download form.

5. Copy the url in there.

6. Post both the Permalink and the download url. Make sure that you remove/mask your access token from the download url.

Avatar
Magnus
  • Under review
Avatar
jiaox wu
Quote from Magnus

I don't understand the question. But it doesn't sound like a bug. It does sound like you'll need to read through the documentation, specifically the Data section. OSMB presents OpenStreetMap's data, as is. This is the reason why you can choose older databases. I assume the data exists in older ones. If it doesn't it hasn't ever existed in OpenStreetMap.

Thank you for your reply. What I mean is that downloading data under the same conditions but in different ways on osm-boundaries.com will result in different data (use map selection or select country). One result is complete, while the other is missing some data.

Avatar
Magnus
  • Not a bug

I don't understand the question. But it doesn't sound like a bug. It does sound like you'll need to read through the documentation, specifically the Data section. OSMB presents OpenStreetMap's data, as is. This is the reason why you can choose older databases. I assume the data exists in older ones. If it doesn't it hasn't ever existed in OpenStreetMap.