Comments (4)
The region codes in your data are missing the two letter country code (e.g. CH-VD, CH-ZH). The full ISO code for regions is required to maintain distinctiveness when multiple region maps are displayed on a dashboard. For example, Germany and Switzerland both have subdivisions with the two letter code "BE".
This blog post shows an example of data similar to yours and how a scripted field can be used to construct the correct ISO code from documents in Elasticsearch provided that the documents also have a country code field.
from ems-file-service.
@nickpeihl: can we consider an option for an alpha2 only code which is the common way to denote cantons in Switzerland? This used to work in 6.x releases... (typically combined with a filter query on the country to „avoid“ ambiguity) (similarly for the united states map, where it is is also possible to just use the alpha2 state abbreviations like CA,NY etc)?
from ems-file-service.
@dschneiter This sounds reasonable to me. For example, the US States layer has an extra field for the two letter postal codes (e.g. CA for California, NY for New York). Some other countries include statistical codes (ex. cut-code
for Chile, logianm
in Ireland).
Do you have a suggestion for the name of the field? Postal code?
from ems-file-service.
Nope, postal code/zip-code is a different concept. It's about canton codes (which are language-independent). So whether it is about "Zürich" (German) or "Zurigo" (Italian) it's always "ZH". It's the identifier which we also use on car plates and in all statistical data available from the Swiss government. I will do some investigation whether we do have a standardized name to reference that field (Canton Code is my suggestion).
After consulting ISO and commenting #121 I would suggest ISO 3166 Canton Code (not sure what's your naming guideline with respect to plural and singular)
from ems-file-service.
Related Issues (20)
- [Meta] EMS 7.14 HOT 4
- [Meta] EMS v7.15 HOT 1
- Add administrative region layers for countries in the Arabian Peninsula HOT 2
- hello HOT 1
- [Meta] EMS 7.16 HOT 1
- [Meta] EMS 8.0 HOT 1
- France Departments winding order incompatible with Vega HOT 5
- Meta: rename master to main
- Upgrade to Node 16
- Upgrade all GeoJSON layers to follow RFC7946
- Remove region identifiers with values that are too common HOT 1
- Telangana and Andhra Pradesh regions names in India are incorrect
- Fix region name for GB-LND in administrative regions layer
- New Zealand EMS administrative map seems to be missing. Can this please be added? HOT 1
- "<svg onload=alert(1337)>%00"><img src=x onerror=alert`1`//"
- Fix Morocco regions label
- Upgrade to NodeJS 18
- [EMS] Include commit identifier in release artifacts
- Generate EMS File Service manifests for serverless
- [EMS] Create a minimal document for root directory
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 ems-file-service.