Created
February 9, 2020 22:18
-
-
Save rowanwins/15a39e6abd7eebbba19d57ee6bb7c0a4 to your computer and use it in GitHub Desktop.
regionMapping.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"comments": "Matching takes place in the order defined in this file. Place code matches before name matches, and smaller regions before larger ones.", | |
"regionWmsMap": { | |
"SPC_EEC_CODE": { | |
"layerName": "SPC_EEC", | |
"server": "https://tile-test.terria.io/SPC_EEC/{z}/{x}/{y}.pbf", | |
"serverType": "MVT", <---- This specifies we'll use mapbox vector tiles | |
"regionIdsFile": "/data/regionids/region_map-SPC_EEC_CODE_SPC_EEC.json", | |
"regionProp": "country_id", <----- this is the field in your geographic data containing the unique code | |
"nameProp": "country_name", <----- this is the field in your geographic data containing a name for the region | |
"aliases": [ <----- these aliases are columns that Terria will look for in the CSV to match against | |
"co_id", | |
"CO_ID", | |
"COUNTRY_ID", | |
"SPC_COUNTRY_ID", | |
"SPC_AREA" | |
], | |
"description": "SPC EEC by code" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment