Comments (12)
I just took care of this in the osm-community-index project, it was only a few files..
from country-coder.
@RobJN Yep, this is a known issue I mentioned in #29 (comment). The problem with reversing the meaning is that there still wouldn't be an easy way to query all the places with UK sovereignty, unless we can find a Wikidata item that corresponds to that feature.
from country-coder.
Can we simply create such a wiki data entry? If so, I know just the person who could help.
from country-coder.
Can we simply create such a wiki data entry? If so, I know just the person who could help.
Sounds okay, if the Wikidata community is okay with it.
from country-coder.
Here's your item; please check it includes what you expected:
https://www.wikidata.org/wiki/Q105435336
Is there an equivalent OSM relation?
But what about https://www.openstreetmap.org/node/7685033716 ? ;-)
from country-coder.
P.S. Note that crown dependencies are not, strictly speaking "UK sovereign territories".
from country-coder.
Hi @quincylvania. So the wikidata item you asked for now exists. How should we proceed? Are you going to make use of this new wikidata item for all the places with UK sovereignty and set the ISO code "GB" to what most would consider the UK to be? Reason I ask is that the community index entries for United Kingdom are all covering too big an area. I can either set them all to the right area like I did for the OSM UK local chapter (although without the Isle of Man or Channel Islands) but if you are making a change anyway I can leave them as is.
from country-coder.
Hey all, I'd like to close out this issue, but I really don't understand it.
From what I can tell, plenty of codes already exist to represent the various UK subregions.
https://ideditor.codes/ lists all the supported codes.
Region | locationSet | view it |
---|---|---|
United Kingdom (includes everything) | { include: ['uk'] } |
view it |
Great Britain (just the main island) | { include: ['Q23666'] } |
view it |
Great Britain + Northern Ireland | { include: ['Q23666', 'GB-NIR'] } |
view it |
British Overseas Territories | { include: ['BOTS'] } |
view it |
UK - BOTS (incl. Isle of Man and Channel Islands) |
{ include: ['UK'], exclude: ['BOTS'] } |
view it |
from country-coder.
Hi @bhousel
Hey all, I'd like to close out this issue, but I really don't understand it.
The issue is that a lot of UK entries in the Community and Imagery Indexs have used the locationSet { include: ['uk'] }
and all of these are wrong as this locationSet includes everything. Most UK citizens (and I expect most BOTS, Isle of Man and Channel Island citizens) would consider the UK to be what you have as locationSet { include: ['Q23666', 'GB-NIR'] }
. As noted in my first post, this also seems to be the case for ISO standards as the BOTS, Isle of Man and Channel Islands all have their own ISO codes.
From here we have two options:
- Update locationSet
{ include: ['uk'] }
so that it covers the area that excludes he BOTS, Isle of Man and Channel Islands. - I go through and change all the Community Index records, plus all the Imagery Index records that currently use ['uk'] to instead be ['Q23666', 'GB-NIR']
Of these, option 1 was my preference as it is what makes most sense to the citizens of these territories and is in line with the ISO standards.
Quincy then replied:
The problem with reversing the meaning [of 'uk'] is that there still wouldn't be an easy way to query all the places with UK sovereignty, unless we can find a Wikidata item that corresponds to that feature.
To satisfy Quincy's request, Andy (pigsonthewing) has created such a Wikidata entry that can be used for the full set (UK + BOTS + Isle of Man + Channel Islands).
My hope is that we can therefore proceed with option 1 above. If that is not reasonable then I will start the process of updating all the incorrect UK entries in the Community and Imagery indexes.
from country-coder.
It looks like we already support another one that I missed:
Region | locationSet | view it |
---|---|---|
Countries of the United Kingdom | { include: ['Q3336843'] } |
view it |
Which is the same thing as include: ['Q23666', 'GB-NIR']
I'll try to:
- have
include: ['uk']
(and related codes) resolve to that geometry and qid instead, and - have
Q105435336
represent whatinclude: ['uk']
does currently (United Kingdom sovereignty)
from country-coder.
I tried this today, and the commit is saved at 706e872, but it breaks a lot of the tests for this library and we'd need to redo some of the documentation too. I am pretty sure I got a lot of it wrong, and I'm not really comfortable merging this into main.
@RobJN I think the faster solution for now is your "option 2" - to just search-and-replace the locationSets in those other projects to say { include: ['Q3336843'] }
.
from country-coder.
Ok @bhousel. Thanks for trying. I will get on to option 2 but with a couple busy weeks ahead it will be late July / early August now.
from country-coder.
Related Issues (20)
- Reduce package/bundle size - dynamically import borders.json HOT 1
- FeedBack - Code HOT 1
- Northen Cyprus' ISO code HOT 2
- ISO 3166 of countries with Sovereign states HOT 1
- Emoji flag for Metropolitan France is broken HOT 3
- A few more sub-country pseudo codes HOT 3
- Africa is a donut
- New release? HOT 5
- Chukchi Peninsula shows as being in Europe instead of Asia
- Support bbox query? HOT 2
- [wrong repo]
- Sub-regions, repeated data and .geojson hosting HOT 1
- We might be using "exports" wrong HOT 2
- ESM export broken in react-native 0.64.2 (non-expo) HOT 4
- File extension pattern matching in React Native 0.62.4 for mjs cjs main and module files HOT 4
- France: EU + Europe missing ? HOT 3
- Fully ESM compatible ?
- Don't use for..in to iterate over arrays
- Missing triangle on Swiss border HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country-coder.