globaldothealth / outbreak-data

For users of G.h data: notes, timelines, sources, etc.
MIT License
0 stars 0 forks source link

Map missing 2 China cases in state view #29

Open jackie-powers opened 4 months ago

jackie-powers commented 4 months ago

In the state view, the map is missing 2 China cases from Guangxi Zhuangzu Zizhi. These cases are accounted for in the total confirmed case count, but Guangxi Zhuangzu Zizhi does not appear in the state view.

stanislaw-zakrzewski commented 4 months ago

The Guangxi Zhuangzu Zizhi state is available in our map provider, but under a different name (I attached it in the code block below). The aggregation process tries to match the name of the administrative are with known areas. So to make it work we need to make sure that we use a name that is recognized by the system (system tries to match by name, name_en and any one of names.en, so in our case it will be 广西壮族自治区, Guangxi Zhuangzu Zizhiqu or any of the [Guangxi Zhuang Autonomous Region, Guangxi, Guangxi Province, Kwangsi]).

 {
   "layer": "adm1",
   "type": "admin",
   "level": 1,
   "polytilesetname": "mapbox.boundaries-adm1-v3",
   "polylayername": "boundaries_admin_1",
   "pointtilesetname": "mapbox.boundaries-admPoints-v3",
   "pointlayername": "points_admin_1",
   "id": "CNA145",
   "feature_id": 1315376,
   "wikidata_id": "Q15176",
   "worldview": "all",
   "unit_code": "45",
   "name": "广西壮族自治区",
   "name_en": "Guangxi Zhuangzu Zizhiqu",
   "names": "{\"en\": [\"Guangxi Zhuang Autonomous Region\", \"Guangxi\", \"Guangxi Province\", \"Kwangsi\"], \"zh\": [\"广西壮族自治区\", \"广西\", \"广西僮族自治区\", \"廣西\", \"廣西僮族自治區\", \"廣西壯族自治區\", \"桂\"]}",
   "description": "province",
   "unit_code_description": "",
   "source_date": 2018,
   "iso_3166_1_alpha_3": "CHN",
   "iso_3166_1": "CN",
   "grouping_attributes": "",
   "join_attributes": "{ \"iso_3166_2\" : \"CN-GX\" }",
   "parent_1": "",
   "parent_2": "",
   "parent_3": "",
   "parent_4": "",
   "z_min": 0,
   "area_sqkm": 259789,
   "centroid": "[108.9991,23.9155]",
   "bounds": "[104.4478,21.0087,112.0558,26.3891]"
 },