From a55faec107c2f066e417a9018a132988236b98a6 Mon Sep 17 00:00:00 2001 From: zoobot Date: Sun, 26 Mar 2023 15:15:27 -0700 Subject: [PATCH] idname changed to idSourceName --- bin/failed-sources.js | 10 +- bin/write-sources.js | 32 +- identity-source.js | 2 +- sources/argentina.js | 62 +- sources/australia.js | 974 +++++++++--------- sources/austria.js | 62 +- sources/belgium.js | 76 +- sources/canada.js | 942 +++++++++--------- sources/chile.js | 22 +- sources/denmark.js | 32 +- sources/france.js | 690 ++++++------- sources/germany.js | 440 ++++---- sources/hong-kong-sar.js | 37 +- sources/ireland.js | 39 +- sources/italy.js | 61 +- sources/luxembourg.js | 28 +- sources/mexico.js | 28 +- sources/netherlands.js | 636 ++++++------ sources/new_zealand.js | 26 +- sources/norway.js | 30 +- sources/portugal.js | 28 +- sources/spain.js | 183 ++-- sources/sweden.js | 56 +- sources/switzerland.js | 28 +- sources/uk.js | 220 ++-- sources/usa.js | 2045 +++++++++++++++++++------------------- src/core/sources.js | 30 +- src/stages/convert.js | 99 +- src/stages/download.js | 40 +- src/stages/normalize.js | 87 +- 30 files changed, 3550 insertions(+), 3495 deletions(-) diff --git a/bin/failed-sources.js b/bin/failed-sources.js index 830f8ae..fd7b6c0 100644 --- a/bin/failed-sources.js +++ b/bin/failed-sources.js @@ -1,14 +1,14 @@ -import fs from "fs"; -import { all } from "../src/core/sources.js"; +import fs from 'fs'; +import { all } from '../src/core/sources.js'; const main = () => { all.forEach((source) => { if (!fs.existsSync(source.destinations.raw.path)) { console.log( source.country, - source.idName, - "is broken?", - !!source.broken + source.idSourceName, + 'is broken?', + !!source.broken, ); } }); diff --git a/bin/write-sources.js b/bin/write-sources.js index c570feb..d351a60 100644 --- a/bin/write-sources.js +++ b/bin/write-sources.js @@ -1,20 +1,20 @@ -import fs from "fs"; -import path from "path"; -import * as utils from "../src/core/utils.js"; -import logger from "../logger.js"; -import identitySource from "../identity-source.js"; -import makeDir from "make-dir"; +import fs from 'fs'; +import path from 'path'; +import * as utils from '../src/core/utils.js'; +import logger from '../logger.js'; +import identitySource from '../identity-source.js'; +import makeDir from 'make-dir'; -const __dirname = path.dirname(import.meta.url.split(":")[1]); -const __root = path.join(__dirname, ".."); +const __dirname = path.dirname(import.meta.url.split(':')[1]); +const __root = path.join(__dirname, '..'); -const exportPath = path.join(__root, "tmp"); +const exportPath = path.join(__root, 'tmp'); function dealWithCrossWalk(crosswalk) { let tmpCrosswalk = crosswalk; if (!crosswalk) return crosswalk; Object.entries(crosswalk).forEach( - ([key, val]) => (tmpCrosswalk = { ...tmpCrosswalk, [key]: val.toString() }) + ([key, val]) => (tmpCrosswalk = { ...tmpCrosswalk, [key]: val.toString() }), ); return tmpCrosswalk; } @@ -30,7 +30,7 @@ const handleSource = async (sourceName) => { const resultPath = path.join(exportPath, sourceName); - await utils.asyncWriteFile(resultPath, "export default [\n"); + await utils.asyncWriteFile(resultPath, 'export default [\n'); country.forEach((source) => { const obj = { @@ -42,8 +42,8 @@ const handleSource = async (sourceName) => { city: source.short || null, long: source.long || source.short || null, short: source.short || null, - main: source.main || source.idName || null, - idName: idName, + main: source.main || source.idSourceName || null, + idSourceName: idSourceName, info: source.info || null, brokenDownload: source.brokenDownload || false, download: source.download || null, @@ -56,7 +56,7 @@ const handleSource = async (sourceName) => { obj.crosswalk = dealWithCrossWalk(source.crosswalk); fs.appendFileSync(resultPath, ` ${JSON.stringify(obj)},\n`, (err) => - logger.error(err) + logger.error(err), ); }); @@ -64,7 +64,7 @@ const handleSource = async (sourceName) => { }; const handleSources = async () => { - const sources = await utils.asyncReadDir(path.join(__root, "sources")); + const sources = await utils.asyncReadDir(path.join(__root, 'sources')); await Promise.all(sources.map(handleSource)); }; @@ -76,5 +76,5 @@ async function start() { } } -process.on("exit", (code) => logger.info(`Exiting with code ${code}\n`)); +process.on('exit', (code) => logger.info(`Exiting with code ${code}\n`)); start(); diff --git a/identity-source.js b/identity-source.js index 0234f5f..19e2e81 100644 --- a/identity-source.js +++ b/identity-source.js @@ -6,7 +6,7 @@ export default { city: null, short: null, long: null, - idName: null, + idSourceName: null, main: null, center: null, latitude: null, diff --git a/sources/argentina.js b/sources/argentina.js index 6e92e05..7af1606 100644 --- a/sources/argentina.js +++ b/sources/argentina.js @@ -4,70 +4,70 @@ const country = [ isoAlpha3: 'ARG', numericCountryCode: '032', country: 'Argentina', - } -] + }, +]; export default [ { isoAlpha2: 'AR', isoAlpha3: 'ARG', numericCountryCode: '032', - country: "Argentina", - city: "Buenos Aires", - short: "Buenos Aires", - long: "Buenos Aires", - idName: "buenos_aires", - main: "buenos_aires", + country: 'Argentina', + city: 'Buenos Aires', + short: 'Buenos Aires', + long: 'Buenos Aires', + idSourceName: 'buenos_aires', + main: 'buenos_aires', center: null, latitude: null, longitude: null, - info: "https://data.buenosaires.gob.ar/dataset/arbolado-espacios-verdes", + info: 'https://data.buenosaires.gob.ar/dataset/arbolado-espacios-verdes', broken: false, download: - "http://cdn.buenosaires.gob.ar/datosabiertos/datasets/arbolado-en-espacios-verdes/arbolado-en-espacios-verdes.csv", - format: "csv", + 'http://cdn.buenosaires.gob.ar/datosabiertos/datasets/arbolado-en-espacios-verdes/arbolado-en-espacios-verdes.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "id_arbol", - height: "altura_tot", - dbh: "diametre", - common: "nombre_com", - scientific: "nombre_cie", - family: "nombre_fam", + idReference: 'id_arbol', + height: 'altura_tot', + dbh: 'diametre', + common: 'nombre_com', + scientific: 'nombre_cie', + family: 'nombre_fam', }, }, { isoAlpha2: 'AR', isoAlpha3: 'ARG', numericCountryCode: '032', - country: "Argentina", - city: "Buenos Aires2", - short: "Buenos Aires2", - long: "Buenos Aires2", - idName: "buenos_aires2", - main: "buenos_aires", + country: 'Argentina', + city: 'Buenos Aires2', + short: 'Buenos Aires2', + long: 'Buenos Aires2', + idSourceName: 'buenos_aires2', + main: 'buenos_aires', center: null, latitude: null, longitude: null, - info: "https://data.buenosaires.gob.ar/dataset/arbolado-publico-lineal", + info: 'https://data.buenosaires.gob.ar/dataset/arbolado-publico-lineal', broken: false, download: - "http://cdn.buenosaires.gob.ar/datosabiertos/datasets/arbolado-publico-lineal/arbolado-publico-lineal-2017-2018.geojson", - format: "geojson", - filename: "buenos_aires2.geojson", + 'http://cdn.buenosaires.gob.ar/datosabiertos/datasets/arbolado-publico-lineal/arbolado-publico-lineal-2017-2018.geojson', + format: 'geojson', + filename: 'buenos_aires2.geojson', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "nro_registro", - scientific: "nombre_cientifico", - dbh: "diametro_altura_pecho", - height: "altura_arbol", + idReference: 'nro_registro', + scientific: 'nombre_cientifico', + dbh: 'diametro_altura_pecho', + height: 'altura_arbol', }, }, ]; diff --git a/sources/australia.js b/sources/australia.js index 7a55439..c324f73 100644 --- a/sources/australia.js +++ b/sources/australia.js @@ -3,40 +3,40 @@ const country = [ isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - } -] + country: 'Australia', + }, +]; export default [ { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Corangamite", - short: "Corangamite", - long: "Corangamite Shire", - idName: "corangamite", - main: "corangamite", + country: 'Australia', + city: 'Corangamite', + short: 'Corangamite', + long: 'Corangamite Shire', + idSourceName: 'corangamite', + main: 'corangamite', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/corangamite-shire-trees/wfs?request=GetFeature&typeName=ckan_d9677ebb_f3db_45f3_88eb_04089debb9e0&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/corangamite-shire-trees/wfs?request=GetFeature&typeName=ckan_d9677ebb_f3db_45f3_88eb_04089debb9e0&outputFormat=json', + format: 'geojson', filename: null, - gdalOptions: "-s_srs EPSG:4326", + gdalOptions: '-s_srs EPSG:4326', license: null, email: null, contact: null, crosswalk: { - idReference: "id", - height: "height", - crown: "width", - scientific: "species", - common: "name", + idReference: 'id', + height: 'height', + crown: 'width', + scientific: 'species', + common: 'name', location: '(x) =>\n ({ "STREET TREE": "street", "PARK TREE": "park" }[x.tree_type] || "")', }, @@ -45,132 +45,132 @@ export default [ isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Colac-Otways", - short: "Colac-Otways", - long: "Colac-Otways Shire", - idName: "colac_otways", - main: "colac_otways", + country: 'Australia', + city: 'Colac-Otways', + short: 'Colac-Otways', + long: 'Colac-Otways Shire', + idSourceName: 'colac_otways', + main: 'colac_otways', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://data.gov.au/geoserver/colac-otway-shire-trees/wfs?request=GetFeature&typeName=ckan_3ce1805b_cb81_4683_8f46_e7bd2d2a3b7c&outputFormat=json", - format: "geojson", + 'http://data.gov.au/geoserver/colac-otway-shire-trees/wfs?request=GetFeature&typeName=ckan_3ce1805b_cb81_4683_8f46_e7bd2d2a3b7c&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - genus: "genus_desc", - species: "spec_desc", - scientific: "(x) => `${x.genus_desc} ${x.spec_desc}`.trim()", - common: "common_nam", + idReference: 'tree_id', + genus: 'genus_desc', + species: 'spec_desc', + scientific: '(x) => `${x.genus_desc} ${x.spec_desc}`.trim()', + common: 'common_nam', location: '(x) => x.location_t.split(" ")[1]', - height: "height_m", - crown: "canopy_wid", - dbh: "diam_breas", - age: "life_stage", + height: 'height_m', + crown: 'canopy_wid', + dbh: 'diam_breas', + age: 'life_stage', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Ballarat", - short: "Ballarat", - long: "City of Ballarat", - idName: "ballarat", - main: "ballarat", + country: 'Australia', + city: 'Ballarat', + short: 'Ballarat', + long: 'City of Ballarat', + idSourceName: 'ballarat', + main: 'ballarat', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/ballarattrees/wfs?request=GetFeature&typeName=ckan_eabaee3f_a563_449b_a04a_1ec847566ea1&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/ballarattrees/wfs?request=GetFeature&typeName=ckan_eabaee3f_a563_449b_a04a_1ec847566ea1&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "species", - common: "common", - species: "species", - genus: "() => undefined", - variety: "variety", - note: "description", - dbh: "dbh", - crown: "crown", - height: "height", - age: "maturity", - health: "health", - structure: "structure", - location: "location", - idReference: "ref", - planted: "planted", - updated: "updated", - ule: "ule", - ule_min: "ule_min", - ule_max: "ule_max", + scientific: 'species', + common: 'common', + species: 'species', + genus: '() => undefined', + variety: 'variety', + note: 'description', + dbh: 'dbh', + crown: 'crown', + height: 'height', + age: 'maturity', + health: 'health', + structure: 'structure', + location: 'location', + idReference: 'ref', + planted: 'planted', + updated: 'updated', + ule: 'ule', + ule_min: 'ule_min', + ule_max: 'ule_max', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Manningham", - short: "Manningham", - long: "City of Manningham", - idName: "manningham", - main: "manningham", + country: 'Australia', + city: 'Manningham', + short: 'Manningham', + long: 'City of Manningham', + idSourceName: 'manningham', + main: 'manningham', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/manningham-streettrees/wfs?request=GetFeature&typeName=ckan_1aef5123_24ff_4084_a0f1_a52ca71e9e99&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/manningham-streettrees/wfs?request=GetFeature&typeName=ckan_1aef5123_24ff_4084_a0f1_a52ca71e9e99&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - audited: "date1", - idReference: "tree_no", - scientific: "species", - height: "height", - dbh: "dbh", + audited: 'date1', + idReference: 'tree_no', + scientific: 'species', + height: 'height', + dbh: 'dbh', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Geelong", - short: "Geelong", - long: "City of Greater Geelong", - idName: "geelong", - main: "geelong", + country: 'Australia', + city: 'Geelong', + short: 'Geelong', + long: 'City of Greater Geelong', + idSourceName: 'geelong', + main: 'geelong', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/geelong-trees/wfs?request=GetFeature&typeName=ckan_13b1196c_7fb7_436a_86bc_ab24c16526de&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/geelong-trees/wfs?request=GetFeature&typeName=ckan_13b1196c_7fb7_436a_86bc_ab24c16526de&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, @@ -178,606 +178,606 @@ export default [ contact: null, crosswalk: { scientific: '(x) => `${x.genus} ${(x.species || "").toLowerCase()}`', - common: "common", - species: "species", - genus: "genus", - variety: "variety", - note: "description", - dbh: "dbh", - crown: "crown", - height: "height", - age: "maturity", - health: "health", - structure: "structure", - location: "location", - idReference: "ref", - planted: "planted", - updated: "updated", - ule: "ule", - ule_min: "ule_min", - ule_max: "ule_max", + common: 'common', + species: 'species', + genus: 'genus', + variety: 'variety', + note: 'description', + dbh: 'dbh', + crown: 'crown', + height: 'height', + age: 'maturity', + health: 'health', + structure: 'structure', + location: 'location', + idReference: 'ref', + planted: 'planted', + updated: 'updated', + ule: 'ule', + ule_min: 'ule_min', + ule_max: 'ule_max', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Melbourne", - short: "Melbourne", - long: "City of Melbourne", - idName: "melbourne", - main: "melbourne", + country: 'Australia', + city: 'Melbourne', + short: 'Melbourne', + long: 'City of Melbourne', + idSourceName: 'melbourne', + main: 'melbourne', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.melbourne.vic.gov.au/api/views/fp38-wiyy/rows.csv?accessType=DOWNLOAD", - format: "csv", - filename: "melbourne.csv", + 'https://data.melbourne.vic.gov.au/api/views/fp38-wiyy/rows.csv?accessType=DOWNLOAD', + format: 'csv', + filename: 'melbourne.csv', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "com_id", - common: "Common Name", - scientific: "Scientific Name", - dbh: "Diameter Breast Height", - planted: "Date Planted", - age: "Age Description", - ule_min: "Useful Life Expectency", - location: "Located In", + idReference: 'com_id', + common: 'Common Name', + scientific: 'Scientific Name', + dbh: 'Diameter Breast Height', + planted: 'Date Planted', + age: 'Age Description', + ule_min: 'Useful Life Expectency', + location: 'Located In', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Adelaide", - short: "Adelaide", - long: "City of Adelaide", - idName: "adelaide", - main: "adelaide", + country: 'Australia', + city: 'Adelaide', + short: 'Adelaide', + long: 'City of Adelaide', + idSourceName: 'adelaide', + main: 'adelaide', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "http://opendata.adelaidecitycouncil.com/street_trees/street_trees.csv", - format: "csv", - filename: "adelaide.csv", + 'http://opendata.adelaidecitycouncil.com/street_trees/street_trees.csv', + format: 'csv', + filename: 'adelaide.csv', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "Asset Id (identifier)", - dbh: "Circum (Inspection)", - health: "Vigour (Inspection)", - height: "Height (Inspection)", - structure: "Structure (Inspection)", - age: "Age (Inspection)", - scientific: "Species Name (Inspection)", - common: "Common Name (Inspection)", + idReference: 'Asset Id (identifier)', + dbh: 'Circum (Inspection)', + health: 'Vigour (Inspection)', + height: 'Height (Inspection)', + structure: 'Structure (Inspection)', + age: 'Age (Inspection)', + scientific: 'Species Name (Inspection)', + common: 'Common Name (Inspection)', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Waite Arboretum", - short: "Waite Arboretum", - long: "Waite Arboretum (Adelaide)", - idName: "waite", - main: "waite", + country: 'Australia', + city: 'Waite Arboretum', + short: 'Waite Arboretum', + long: 'Waite Arboretum (Adelaide)', + idSourceName: 'waite', + main: 'waite', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://data.sa.gov.au/storage/f/2014-06-23T06%3A12%3A22.180Z/waitetreeid-2014-app-joined-19062014.zip", - format: "zip", - filename: "WaiteTreeID_2014_App_Joined_19062014.shp", + 'http://data.sa.gov.au/storage/f/2014-06-23T06%3A12%3A22.180Z/waitetreeid-2014-app-joined-19062014.zip', + format: 'zip', + filename: 'WaiteTreeID_2014_App_Joined_19062014.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - scientific: "scientific", - common: "commonname", + idReference: 'tree_id', + scientific: 'scientific', + common: 'commonname', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Burnside", - short: "Burnside", - long: "City of Burnside", - idName: "burnside", - main: "burnside", + country: 'Australia', + city: 'Burnside', + short: 'Burnside', + long: 'City of Burnside', + idSourceName: 'burnside', + main: 'burnside', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.sa.gov.au/data/dataset/b7e1c8f6-169c-41bd-b5d7-140395a41c38/resource/6d1912aa-4775-4f5e-b00d-18456ad872a5/download/burnsidetrees.geojson", - format: "geojson", + 'https://data.sa.gov.au/data/dataset/b7e1c8f6-169c-41bd-b5d7-140395a41c38/resource/6d1912aa-4775-4f5e-b00d-18456ad872a5/download/burnsidetrees.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "TreeID", - common: "CommonName", - height: "TreeHeight", - scientific: "BotanicalN", - dbh: "Circumfere", + idReference: 'TreeID', + common: 'CommonName', + height: 'TreeHeight', + scientific: 'BotanicalN', + dbh: 'Circumfere', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Launceston", - short: "Launceston", - long: "City of Launceston", - idName: "launceston", - main: "launceston", + country: 'Australia', + city: 'Launceston', + short: 'Launceston', + long: 'City of Launceston', + idSourceName: 'launceston', + main: 'launceston', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://lcc.launceston.opendata.arcgis.com/datasets/63b09a3688804a17b0edc4b3b072a0d7_1.zip", - format: "zip", - filename: "Trees.shp", + 'http://lcc.launceston.opendata.arcgis.com/datasets/63b09a3688804a17b0edc4b3b072a0d7_1.zip', + format: 'zip', + filename: 'Trees.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "objectid", - common: "name", - scientific: "genusspeci", - age: "age", - dbh: "diametr_c", - height: "height_m", - crown: "horizontal", - audited: "auditdate", + idReference: 'objectid', + common: 'name', + scientific: 'genusspeci', + age: 'age', + dbh: 'diametr_c', + height: 'height_m', + crown: 'horizontal', + audited: 'auditdate', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", + country: 'Australia', city: "Hobson's Bay", short: "Hobson's Bay", long: "City of Hobson's Bay", - idName: "hobsons_bay", - main: "hobsons_bay", + idSourceName: 'hobsons_bay', + main: 'hobsons_bay', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://data.gov.au/data/dataset/80051ffe-04d5-4602-b15b-60e0d0e3d153/resource/ea1ec6fc-02bd-4e36-8e43-c990b6a9268d/download/hbcc_street_and_park_trees.json", - format: "geojson", + 'https://data.gov.au/data/dataset/80051ffe-04d5-4602-b15b-60e0d0e3d153/resource/ea1ec6fc-02bd-4e36-8e43-c990b6a9268d/download/hbcc_street_and_park_trees.json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "Genus", - species: "Species", - dbh: "DBH", - location: "Type", + genus: 'Genus', + species: 'Species', + dbh: 'DBH', + location: 'Type', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Glenelg", - short: "Glenelg", - long: "Glenelg Shire", - idName: "glenelg", - main: "glenelg", + country: 'Australia', + city: 'Glenelg', + short: 'Glenelg', + long: 'Glenelg Shire', + idSourceName: 'glenelg', + main: 'glenelg', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://data.gov.au/dataset/3721ad67-7b5b-4815-96b1-9d8b1a89dbd7/resource/b9ff3d44-17b4-4f87-8a28-2d540fa37d8f/download/Glenelg-Street-and-Park-Trees.csv", - format: "csv", + 'http://data.gov.au/dataset/3721ad67-7b5b-4815-96b1-9d8b1a89dbd7/resource/b9ff3d44-17b4-4f87-8a28-2d540fa37d8f/download/Glenelg-Street-and-Park-Trees.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "scientific", - common: "common", - species: "species", - genus: "genus", - variety: "variety", - note: "description", - dbh: "dbh", - crown: "crown", - height: "height", - age: "maturity", - health: "health", - structure: "structure", - location: "location", - idReference: "ref", - planted: "planted", - updated: "updated", - ule: "ule", - ule_min: "ule_min", - ule_max: "ule_max", + scientific: 'scientific', + common: 'common', + species: 'species', + genus: 'genus', + variety: 'variety', + note: 'description', + dbh: 'dbh', + crown: 'crown', + height: 'height', + age: 'maturity', + health: 'health', + structure: 'structure', + location: 'location', + idReference: 'ref', + planted: 'planted', + updated: 'updated', + ule: 'ule', + ule_min: 'ule_min', + ule_max: 'ule_max', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Southern Grampians", - short: "Southern Grampians", - long: "City of Southern Grampians", - idName: "southern_grampians", - main: "southern_grampians", + country: 'Australia', + city: 'Southern Grampians', + short: 'Southern Grampians', + long: 'City of Southern Grampians', + idSourceName: 'southern_grampians', + main: 'southern_grampians', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://data.gov.au/geoserver/southern-grampians-street-and-park-trees/wfs?request=GetFeature&typeName=ckan_4a2843f5_8c01_438b_95f3_01ef0a518441&outputFormat=json", - format: "geojson", + 'http://data.gov.au/geoserver/southern-grampians-street-and-park-trees/wfs?request=GetFeature&typeName=ckan_4a2843f5_8c01_438b_95f3_01ef0a518441&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "ref", - scientific: "species", - common: "common", - location: "location", - height: "height", - crown: "crown", - age: "maturity", + idReference: 'ref', + scientific: 'species', + common: 'common', + location: 'location', + height: 'height', + crown: 'crown', + age: 'maturity', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Prospect", - short: "Prospect", - long: "City of Prospect", - idName: "prospect1", - main: "prospect1", + country: 'Australia', + city: 'Prospect', + short: 'Prospect', + long: 'City of Prospect', + idSourceName: 'prospect1', + main: 'prospect1', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.sa.gov.au/data/dataset/5d86d41e-b6c6-47d5-9b88-4d95916c5e76/resource/d1e30913-6e91-4a1f-b576-64120cc4b242/download/city-of-prospect-tree-species-in-reserves-2016.csv", - format: "csv", + 'https://data.sa.gov.au/data/dataset/5d86d41e-b6c6-47d5-9b88-4d95916c5e76/resource/d1e30913-6e91-4a1f-b576-64120cc4b242/download/city-of-prospect-tree-species-in-reserves-2016.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - species: "Tree Species", - age: "Tree Age", + species: 'Tree Species', + age: 'Tree Age', dbh: '(x) => `${x["Tree Circumference"]} circumference`', - health: "Tree Health", - structure: "Tree Structure", - height: "Tree Height", + health: 'Tree Health', + structure: 'Tree Structure', + height: 'Tree Height', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Prospect", - short: "Prospect", - long: "City of Prospect", - idName: "prospect2", - main: "prospect1", + country: 'Australia', + city: 'Prospect', + short: 'Prospect', + long: 'City of Prospect', + idSourceName: 'prospect2', + main: 'prospect1', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.sa.gov.au/data/dataset/7bf2e4a4-40cc-40fd-83a9-fabb6d854039/resource/3f6be219-d66f-4b40-bfc7-16214fbc0989/download/city-of-prospect-street-trees-2016.csv", - format: "csv", + 'https://data.sa.gov.au/data/dataset/7bf2e4a4-40cc-40fd-83a9-fabb6d854039/resource/3f6be219-d66f-4b40-bfc7-16214fbc0989/download/city-of-prospect-street-trees-2016.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { common: "Species Name" }, + crosswalk: { common: 'Species Name' }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Perth", - short: "Perth", - long: "City of Perth", - idName: "perth", - main: "perth", + country: 'Australia', + city: 'Perth', + short: 'Perth', + long: 'City of Perth', + idSourceName: 'perth', + main: 'perth', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://opendata.arcgis.com/datasets/c5ce51d9789a4e9a8510acb8c8f3ecf4_0.zip", - format: "zip", - filename: "PKS_AST_TREESMASTER_PV.shp", + 'https://opendata.arcgis.com/datasets/c5ce51d9789a4e9a8510acb8c8f3ecf4_0.zip', + format: 'zip', + filename: 'PKS_AST_TREESMASTER_PV.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "BOTANICAL_", - common: "COMMON_NAM", - family: "FAMILY", - height: "TREE_HEIGH", - planted: "DATE_PLANT", - idReference: "TREE_ID", + scientific: 'BOTANICAL_', + common: 'COMMON_NAM', + family: 'FAMILY', + height: 'TREE_HEIGH', + planted: 'DATE_PLANT', + idReference: 'TREE_ID', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Brimbank", - short: "Brimbank", - long: "City of Brimbank", - idName: "brimbank", - main: "brimbank", + country: 'Australia', + city: 'Brimbank', + short: 'Brimbank', + long: 'City of Brimbank', + idSourceName: 'brimbank', + main: 'brimbank', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/brimbank-open-space-trees/wfs?request=GetFeature&typeName=ckan_7a57b5a1_2ca3_4171_be91_0d371cefd250&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/brimbank-open-space-trees/wfs?request=GetFeature&typeName=ckan_7a57b5a1_2ca3_4171_be91_0d371cefd250&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "central_as", - location: "location", - genus: "genus", - species: "species", - common: "common_nam", - age: "age", - height: "height", - crown: "spread", + idReference: 'central_as', + location: 'location', + genus: 'genus', + species: 'species', + common: 'common_nam', + age: 'age', + height: 'height', + crown: 'spread', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Bendigo", - short: "Bendigo", - long: "City of Greater Bendigo", - idName: "bendigo", - main: "bendigo", + country: 'Australia', + city: 'Bendigo', + short: 'Bendigo', + long: 'City of Greater Bendigo', + idSourceName: 'bendigo', + main: 'bendigo', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/city-of-greater-bendigo-environment-trees/wfs?request=GetFeature&typeName=ckan_d17c9e50_fab1_40e6_b91d_6e665faf2656&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/city-of-greater-bendigo-environment-trees/wfs?request=GetFeature&typeName=ckan_d17c9e50_fab1_40e6_b91d_6e665faf2656&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "assetid", - note: "desc", - scientific: (x) => x.species.split(" - ")[0], - common: (x) => x.species.split(" - ")[1], - variety: (x) => (x.cultivar !== "Not Specified" ? x.cultivar : ""), + idReference: 'assetid', + note: 'desc', + scientific: (x) => x.species.split(' - ')[0], + common: (x) => x.species.split(' - ')[1], + variety: (x) => (x.cultivar !== 'Not Specified' ? x.cultivar : ''), }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Shepparton", - short: "Shepparton", - long: "City of Shepparton", - idName: "shepparton", - main: "shepparton", + country: 'Australia', + city: 'Shepparton', + short: 'Shepparton', + long: 'City of Shepparton', + idSourceName: 'shepparton', + main: 'shepparton', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://data.gov.au/dataset/e794491f-2eb7-4035-8b0c-f7248c28feda/resource/a1148573-68b9-4bd8-bda4-f08030d38c9d/download/greatersheppartoncitycouncilstreetandparktrees.zip", - format: "zip", - filename: "Greater_Shepparton_City_Council_Street_and_Park_Trees.shp", + 'https://data.gov.au/dataset/e794491f-2eb7-4035-8b0c-f7248c28feda/resource/a1148573-68b9-4bd8-bda4-f08030d38c9d/download/greatersheppartoncitycouncilstreetandparktrees.zip', + format: 'zip', + filename: 'Greater_Shepparton_City_Council_Street_and_Park_Trees.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "scientific", - common: "common", - species: "species", - genus: "genus", - variety: "variety", - note: "description", - dbh: "dbh", - crown: "crown", - height: "height", - age: "maturity", - health: "health", - structure: "structure", - location: "location", - idReference: "ref", - planted: "planted", - updated: "updated", - ule: "ule", - ule_min: "ule_min", - ule_max: "ule_max", + scientific: 'scientific', + common: 'common', + species: 'species', + genus: 'genus', + variety: 'variety', + note: 'description', + dbh: 'dbh', + crown: 'crown', + height: 'height', + age: 'maturity', + health: 'health', + structure: 'structure', + location: 'location', + idReference: 'ref', + planted: 'planted', + updated: 'updated', + ule: 'ule', + ule_min: 'ule_min', + ule_max: 'ule_max', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Wyndham", - short: "Wyndham", - long: "City of Wyndham", - idName: "wyndham", - main: "wyndham", + country: 'Australia', + city: 'Wyndham', + short: 'Wyndham', + long: 'City of Wyndham', + idSourceName: 'wyndham', + main: 'wyndham', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://data.gov.au/dataset/0254dee0-5b26-484f-a5ae-5ca3cab46601/resource/fb06e7c8-d037-489b-a963-b747271f2e54/download/trees.json", - format: "zip", - filename: "OpenData_TI_Trees_LatestInspection.shp", - gdalOptions: "-s_srs unzip/OpenData_TI_Trees_LatestInspection.prj", + 'https://data.gov.au/dataset/0254dee0-5b26-484f-a5ae-5ca3cab46601/resource/fb06e7c8-d037-489b-a963-b747271f2e54/download/trees.json', + format: 'zip', + filename: 'OpenData_TI_Trees_LatestInspection.shp', + gdalOptions: '-s_srs unzip/OpenData_TI_Trees_LatestInspection.prj', license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - common: "tree_commo", - height: "height", - crown: "canopy_wid", - dbh: "diameter_breast_height", - age: "tree_age", - health: "health", - ule: "useful_life_expectancy", - structure: "structure", + idReference: 'tree_id', + common: 'tree_commo', + height: 'height', + crown: 'canopy_wid', + dbh: 'diameter_breast_height', + age: 'tree_age', + health: 'health', + ule: 'useful_life_expectancy', + structure: 'structure', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Port Phillip", - short: "Port Phillip", - long: "City of Port Phillip", - idName: "port-phillip", - main: "port-phillip", + country: 'Australia', + city: 'Port Phillip', + short: 'Port Phillip', + long: 'City of Port Phillip', + idSourceName: 'port-phillip', + main: 'port-phillip', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://data.gov.au/dataset/6b72d22b-d824-4281-bd08-ab62e3c38415/resource/9b0d7d55-5267-464b-85d7-3d141d779bab/download/city-of-port-phillip-trees.geojson", - format: "geojson", + 'https://data.gov.au/dataset/6b72d22b-d824-4281-bd08-ab62e3c38415/resource/9b0d7d55-5267-464b-85d7-3d141d779bab/download/city-of-port-phillip-trees.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "species", - common: "common", - species: "species", - genus: "genus", - variety: "variety", - note: "description", - dbh: "dbh", - crown: "crown", - height: "height", - age: "maturity", - health: "health", - structure: "structure", - location: "location", - idReference: "ref", - planted: "planted", - updated: "updated", - ule: "ule", - ule_min: "ule_min", - ule_max: "ule_max", + scientific: 'species', + common: 'common', + species: 'species', + genus: 'genus', + variety: 'variety', + note: 'description', + dbh: 'dbh', + crown: 'crown', + height: 'height', + age: 'maturity', + health: 'health', + structure: 'structure', + location: 'location', + idReference: 'ref', + planted: 'planted', + updated: 'updated', + ule: 'ule', + ule_min: 'ule_min', + ule_max: 'ule_max', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Boroondara", - short: "Boroondara", - long: "City of Boroondara", - idName: "boroondara", - main: "boroondara", + country: 'Australia', + city: 'Boroondara', + short: 'Boroondara', + long: 'City of Boroondara', + idSourceName: 'boroondara', + main: 'boroondara', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/significant-tree/wfs?request=GetFeature&typeName=ckan_14e2b87e_c733_4071_b604_c0cb33d14a42&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/significant-tree/wfs?request=GetFeature&typeName=ckan_14e2b87e_c733_4071_b604_c0cb33d14a42&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - species: "botanicaln", - common: "commonname", - height: "height", - crown: "canopyspre", - health: "health", - note: "significan", - location: "locality", + species: 'botanicaln', + common: 'commonname', + height: 'height', + crown: 'canopyspre', + health: 'health', + note: 'significan', + location: 'locality', dbh: (x) => `${x.girth} girth`, }, }, @@ -785,122 +785,126 @@ export default [ isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Yarra", - short: "Yarra", - long: "City of Yarra", - idName: "yarra", - main: "yarra", + country: 'Australia', + city: 'Yarra', + short: 'Yarra', + long: 'City of Yarra', + idSourceName: 'yarra', + main: 'yarra', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/data/dataset/f3c88ce7-504b-4ef7-907f-686037f7420c/resource/6e4186b0-3e00-48f9-a09c-cb60d1d0d49f/download/yarra-street-and-park-trees.geojson", - format: "geojson", + 'https://data.gov.au/data/dataset/f3c88ce7-504b-4ef7-907f-686037f7420c/resource/6e4186b0-3e00-48f9-a09c-cb60d1d0d49f/download/yarra-street-and-park-trees.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "scientific", - common: "common", - species: (s) => (s.species || "").replace(/^[A-Z]\\. /, ""), - genus: "genus", - variety: "variety", - note: "description", - dbh: "dbh", - crown: "crown", - height: "height", - age: "maturity", - health: "health", - structure: "structure", - location: "location", - idReference: "ref", - planted: "planted", - updated: "updated", - ule: "ule", - ule_min: "ule_min", - ule_max: "ule_max", + scientific: 'scientific', + common: 'common', + species: (s) => (s.species || '').replace(/^[A-Z]\\. /, ''), + genus: 'genus', + variety: 'variety', + note: 'description', + dbh: 'dbh', + crown: 'crown', + height: 'height', + age: 'maturity', + health: 'health', + structure: 'structure', + location: 'location', + idReference: 'ref', + planted: 'planted', + updated: 'updated', + ule: 'ule', + ule_min: 'ule_min', + ule_max: 'ule_max', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Glen Eira", - short: "Glen Eira", - long: "City of Glen Eira", - idName: "glen_eira", - main: "glen_eira", + country: 'Australia', + city: 'Glen Eira', + short: 'Glen Eira', + long: 'City of Glen Eira', + idSourceName: 'glen_eira', + main: 'glen_eira', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/geoserver/street-and-park-trees/wfs?request=GetFeature&typeName=ckan_0553b144_9145_4458_922f_5c6175d2e100&outputFormat=json", - format: "geojson", + 'https://data.gov.au/geoserver/street-and-park-trees/wfs?request=GetFeature&typeName=ckan_0553b144_9145_4458_922f_5c6175d2e100&outputFormat=json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - dbh: "dbh", - common: "common_nam", - scientific: "botanical", - height: "height", - crown: "spread", - location: "locationty", + dbh: 'dbh', + common: 'common_nam', + scientific: 'botanical', + height: 'height', + crown: 'spread', + location: 'locationty', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Wodonga", - short: "Wodonga", - long: "City of Wodonga", - idName: "wodonga", - main: "wodonga", + country: 'Australia', + city: 'Wodonga', + short: 'Wodonga', + long: 'City of Wodonga', + idSourceName: 'wodonga', + main: 'wodonga', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.gov.au/data/dataset/e7d6ebd3-04a8-4d73-b8ba-a9b82aa79b16/resource/180ba7ad-7bd7-490b-81f8-79c74ec0a915/download/tree.csv", - format: "csv", - filename: "wodonga.csv", + 'https://data.gov.au/data/dataset/e7d6ebd3-04a8-4d73-b8ba-a9b82aa79b16/resource/180ba7ad-7bd7-490b-81f8-79c74ec0a915/download/tree.csv', + format: 'csv', + filename: 'wodonga.csv', gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { idReference: "field_1", scientific: "field_2", common: "field_3" }, + crosswalk: { + idReference: 'field_1', + scientific: 'field_2', + common: 'field_3', + }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Hobart", - short: "Hobart", - long: "City of Hobart", - idName: "hobart", - main: "hobart", + country: 'Australia', + city: 'Hobart', + short: 'Hobart', + long: 'City of Hobart', + idSourceName: 'hobart', + main: 'hobart', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://data-1-hobartcc.opendata.arcgis.com/datasets/d50fa3c9875d43fbb7e462248160e1ee_0.geojson", - format: "geojson", + 'http://data-1-hobartcc.opendata.arcgis.com/datasets/d50fa3c9875d43fbb7e462248160e1ee_0.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, @@ -911,92 +915,96 @@ export default [ isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Sherwood Arboretum", - short: "Sherwood Arboretum", - long: "Sherwood Arboretum (Brisbane)", - idName: "sherwood_arboretum", - main: "sherwood_arboretum", + country: 'Australia', + city: 'Sherwood Arboretum', + short: 'Sherwood Arboretum', + long: 'Sherwood Arboretum (Brisbane)', + idSourceName: 'sherwood_arboretum', + main: 'sherwood_arboretum', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://www.spatial-data.brisbane.qld.gov.au/datasets/613169f42b43494499c83640392c43e5_0.geojson", - format: "geojson", + 'http://www.spatial-data.brisbane.qld.gov.au/datasets/613169f42b43494499c83640392c43e5_0.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "Common_Name", - scientific: "Scientific_Name", - family: "Family", - height: "Height", - crown: "Crown_width", + common: 'Common_Name', + scientific: 'Scientific_Name', + family: 'Family', + height: 'Height', + crown: 'Crown_width', dbh: (x) => x.DBH / 10 || undefined, - id: "ObjectId", + id: 'ObjectId', }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Sydney", - short: "Sydney", - long: "City of Sydney", - idName: "sydney", - main: "sydney", + country: 'Australia', + city: 'Sydney', + short: 'Sydney', + long: 'City of Sydney', + idSourceName: 'sydney', + main: 'sydney', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://emscycletours.site44.com/opentrees-data/sydney-tree-data.csv", - format: "csv", - filename: "sydney.csv", + 'https://emscycletours.site44.com/opentrees-data/sydney-tree-data.csv', + format: 'csv', + filename: 'sydney.csv', gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "species", scientific: "species", common: "species" }, + crosswalk: { + scientific: 'species', + scientific: 'species', + common: 'species', + }, }, { isoAlpha2: 'AU', isoAlpha3: 'AUS', numericCountryCode: '036', - country: "Australia", - city: "Unley", - short: "Unley", - long: "Unley", - idName: "unley", - main: "unley", + country: 'Australia', + city: 'Unley', + short: 'Unley', + long: 'Unley', + idSourceName: 'unley', + main: 'unley', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/unley::trees/data", + info: 'http://hub.arcgis.com/datasets/unley::trees/data', broken: false, download: - "https://opendata.arcgis.com/datasets/910774507d6a42248a50f9922054a0a0_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/910774507d6a42248a50f9922054a0a0_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "dom_genus_", - species: "dom_spcie", - common: "dom_common", - scientific: x => `${x.dom_genus_} ${x.dom_spcie}`, - health: "health", - structure: "structure", - age: "age", - ule: "unel___repl", + genus: 'dom_genus_', + species: 'dom_spcie', + common: 'dom_common', + scientific: (x) => `${x.dom_genus_} ${x.dom_spcie}`, + health: 'health', + structure: 'structure', + age: 'age', + ule: 'unel___repl', }, }, -]; \ No newline at end of file +]; diff --git a/sources/austria.js b/sources/austria.js index 40e64bd..b282386 100644 --- a/sources/austria.js +++ b/sources/austria.js @@ -4,72 +4,72 @@ const country = [ isoAlpha3: 'AUT', numericCountryCode: '040', country: 'Austria', - } -] + }, +]; export default [ { isoAlpha2: 'AT', isoAlpha3: 'AUT', numericCountryCode: '040', - country: "Austria", - city: "Vienna", - short: "Vienna", - long: "Vienna", - idName: "vienna", - main: "vienna", + country: 'Austria', + city: 'Vienna', + short: 'Vienna', + long: 'Vienna', + idSourceName: 'vienna', + main: 'vienna', center: null, latitude: null, longitude: null, - info: "https://www.data.gv.at/katalog/dataset/c91a4635-8b7d-43fe-9b27-d95dec8392a7", + info: 'https://www.data.gv.at/katalog/dataset/c91a4635-8b7d-43fe-9b27-d95dec8392a7', broken: false, download: - "https://data.wien.gv.at/daten/geo?service=WFS&request=GetFeature&version=1.1.0&typeName=ogdwien:BAUMKATOGD&srsName=EPSG:4326&outputFormat=csv", - format: "csv", + 'https://data.wien.gv.at/daten/geo?service=WFS&request=GetFeature&version=1.1.0&typeName=ogdwien:BAUMKATOGD&srsName=EPSG:4326&outputFormat=csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "BAUM_ID", + idReference: 'BAUM_ID', dbh: (x) => (x.STAMMUNGFANG / 3.14159) * 2, - height: "BAUMHOEHE", - scientific: "GATTUNG_ART", - crown: "KRONENDURCHMESSER", + height: 'BAUMHOEHE', + scientific: 'GATTUNG_ART', + crown: 'KRONENDURCHMESSER', }, }, { isoAlpha2: 'AT', isoAlpha3: 'AUT', numericCountryCode: '040', - country: "Austria", - city: "Linz", - short: "Linz", - long: "City of Linz", - idName: "linz", - main: "linz", + country: 'Austria', + city: 'Linz', + short: 'Linz', + long: 'City of Linz', + idSourceName: 'linz', + main: 'linz', center: null, latitude: null, longitude: null, - info: "https://www.data.gv.at/katalog/dataset/baumkataster", + info: 'https://www.data.gv.at/katalog/dataset/baumkataster', broken: true, download: - "http://data.linz.gv.at/katalog/umwelt/baumkataster/2020/FME_BaumdatenBearbeitet_OGD_20200225.csv", - format: "csv", + 'http://data.linz.gv.at/katalog/umwelt/baumkataster/2020/FME_BaumdatenBearbeitet_OGD_20200225.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "BaumNr", - genus: "Gattung", - species: (x) => (x.Art !== "0" ? x.Art : undefined), - common: "NameDeutsch", - height: "Hoehe", - crown: "Schirmdurchmesser", - dbh: "Stammumfang", + idReference: 'BaumNr', + genus: 'Gattung', + species: (x) => (x.Art !== '0' ? x.Art : undefined), + common: 'NameDeutsch', + height: 'Hoehe', + crown: 'Schirmdurchmesser', + dbh: 'Stammumfang', }, }, ]; diff --git a/sources/belgium.js b/sources/belgium.js index dccdbae..d4521c7 100644 --- a/sources/belgium.js +++ b/sources/belgium.js @@ -3,53 +3,57 @@ const country = [ isoAlpha2: 'BE', isoAlpha3: 'BEL', numericCountryCode: '056', - country: "Belgium", - } -] + country: 'Belgium', + }, +]; export default [ { isoAlpha2: 'BE', isoAlpha3: 'BEL', numericCountryCode: '056', - country: "Belgium", - city: "Antwerp", - short: "Antwerp", - long: "Antwerp", - idName: "antwerpen_be", - main: "antwerpen_be", + country: 'Belgium', + city: 'Antwerp', + short: 'Antwerp', + long: 'Antwerp', + idSourceName: 'antwerpen_be', + main: 'antwerpen_be', center: null, latitude: null, longitude: null, - info: "https://portaal-stadantwerpen.opendata.arcgis.com/datasets/boom/data", + info: 'https://portaal-stadantwerpen.opendata.arcgis.com/datasets/boom/data', broken: true, download: - "https://opendata.arcgis.com/datasets/0293af55ca454b44ba789ee14c82543a_676.zip", + 'https://opendata.arcgis.com/datasets/0293af55ca454b44ba789ee14c82543a_676.zip', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "LATBOOMSOO", dbh: "STAMOMTREK", idReference: "ANTW_ID" }, + crosswalk: { + scientific: 'LATBOOMSOO', + dbh: 'STAMOMTREK', + idReference: 'ANTW_ID', + }, }, { isoAlpha2: 'BE', isoAlpha3: 'BEL', numericCountryCode: '056', - country: "Belgium", - city: "Wallonie-Bruxelles", - short: "Wallonie-Bruxelles", - long: "Wallonie-Bruxelles", - idName: "wallonie_bruxelles_be", - main: "wallonie_bruxelles_be", + country: 'Belgium', + city: 'Wallonie-Bruxelles', + short: 'Wallonie-Bruxelles', + long: 'Wallonie-Bruxelles', + idSourceName: 'wallonie_bruxelles_be', + main: 'wallonie_bruxelles_be', center: null, latitude: null, longitude: null, - info: "https://www.odwb.be/explore/dataset/arbustum/information/", + info: 'https://www.odwb.be/explore/dataset/arbustum/information/', broken: false, download: - "https://www.odwb.be/explore/dataset/arbustum/download/?format=shp", + 'https://www.odwb.be/explore/dataset/arbustum/download/?format=shp', format: null, filename: null, gdalOptions: null, @@ -62,19 +66,19 @@ export default [ isoAlpha2: 'BE', isoAlpha3: 'BEL', numericCountryCode: '056', - country: "Belgium", - city: "Roosendaal", - short: "Roosendaal", - long: "Gemeente Roosendaal", - idName: "roosendaal_be", - main: "roosendaal_be", + country: 'Belgium', + city: 'Roosendaal', + short: 'Roosendaal', + long: 'Gemeente Roosendaal', + idSourceName: 'roosendaal_be', + main: 'roosendaal_be', center: null, latitude: null, longitude: null, - info: "https://opendata.roosendaal.nl/datasets/gbi-boom-public", + info: 'https://opendata.roosendaal.nl/datasets/gbi-boom-public', broken: false, download: - "https://opendata.arcgis.com/datasets/f97b4a30ac914a73aa7552a96f0ae82d_0.zip", + 'https://opendata.arcgis.com/datasets/f97b4a30ac914a73aa7552a96f0ae82d_0.zip', format: null, filename: null, gdalOptions: null, @@ -87,19 +91,19 @@ export default [ isoAlpha2: 'BE', isoAlpha3: 'BEL', numericCountryCode: '056', - country: "Belgium", - city: "Gent", - short: "Gent", - long: "Stad Gent", - idName: "gent_be", - main: "gent_be", + country: 'Belgium', + city: 'Gent', + short: 'Gent', + long: 'Stad Gent', + idSourceName: 'gent_be', + main: 'gent_be', center: null, latitude: null, longitude: null, - info: "https://datatank.stad.gent/4/milieuennatuur/bomeninventaris", + info: 'https://datatank.stad.gent/4/milieuennatuur/bomeninventaris', broken: true, download: - "https://datatank.stad.gent/4/milieuennatuur/bomeninventaris.json", + 'https://datatank.stad.gent/4/milieuennatuur/bomeninventaris.json', format: null, filename: null, gdalOptions: null, diff --git a/sources/canada.js b/sources/canada.js index 5b85e60..2e2ddd0 100644 --- a/sources/canada.js +++ b/sources/canada.js @@ -3,93 +3,93 @@ const country = [ isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - } -] + country: 'Canada', + }, +]; export default [ { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Montreal", - short: "Montreal", - long: "Montreal", - idName: "montreal", - main: "montreal", + country: 'Canada', + city: 'Montreal', + short: 'Montreal', + long: 'Montreal', + idSourceName: 'montreal', + main: 'montreal', center: null, latitude: null, longitude: null, - info: "http://donnees.ville.montreal.qc.ca/dataset/arbres", + info: 'http://donnees.ville.montreal.qc.ca/dataset/arbres', broken: true, download: - "http://donnees.ville.montreal.qc.ca/dataset/3e3efad6-9f2f-4cc0-8f1b-92de1ccdb282/resource/c6c5afe8-10be-4539-8eae-93918ea9866e/download/arbres-publics.csv", - format: "csv", + 'http://donnees.ville.montreal.qc.ca/dataset/3e3efad6-9f2f-4cc0-8f1b-92de1ccdb282/resource/c6c5afe8-10be-4539-8eae-93918ea9866e/download/arbres-publics.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Essence_latin", - common: "ESSENCE_ANG", - dbh: "DHP", - updated: "Date_releve", - planted: "Date_plantation", - idReference: "EMP_NO", + scientific: 'Essence_latin', + common: 'ESSENCE_ANG', + dbh: 'DHP', + updated: 'Date_releve', + planted: 'Date_plantation', + idReference: 'EMP_NO', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Quebec City", - short: "Quebec City", - long: "Quebec City", - idName: "quebec", - main: "quebec", + country: 'Canada', + city: 'Quebec City', + short: 'Quebec City', + long: 'Quebec City', + idSourceName: 'quebec', + main: 'quebec', center: null, latitude: null, longitude: null, - info: "https://www.donneesquebec.ca/recherche/fr/dataset/vque_26", + info: 'https://www.donneesquebec.ca/recherche/fr/dataset/vque_26', broken: false, download: - "https://www.donneesquebec.ca/recherche/fr/dataset/34103a43-3712-4a29-92e1-039e9188e915/resource/de031174-cbdf-4d69-869c-21cca8036279/download/vdq-arbrerepertorie.geojson", - format: "csv", + 'https://www.donneesquebec.ca/recherche/fr/dataset/34103a43-3712-4a29-92e1-039e9188e915/resource/de031174-cbdf-4d69-869c-21cca8036279/download/vdq-arbrerepertorie.geojson', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "NOM_LATIN", - common: "NOM_FRANCAIS", - dbh: "DIAMETRE", - planted: "DATE_PLANTE", - location: "NOM_TOPOGRAPHIE", + scientific: 'NOM_LATIN', + common: 'NOM_FRANCAIS', + dbh: 'DIAMETRE', + planted: 'DATE_PLANTE', + location: 'NOM_TOPOGRAPHIE', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Longueuil", - short: "Longueuil", - long: "Ville de Longueuil", - idName: "longueuil", - main: "longueuil", + country: 'Canada', + city: 'Longueuil', + short: 'Longueuil', + long: 'Ville de Longueuil', + idSourceName: 'longueuil', + main: 'longueuil', center: null, latitude: null, longitude: null, - info: "https://www.longueuil.quebec/fr/donnees-ouvertes/arbres", + info: 'https://www.longueuil.quebec/fr/donnees-ouvertes/arbres', broken: true, download: - "https://www.longueuil.quebec/sites/longueuil/files/donnees_ouvertes/arbres.zip", - format: "zip", - filename: "Arbres.shp", + 'https://www.longueuil.quebec/sites/longueuil/files/donnees_ouvertes/arbres.zip', + format: 'zip', + filename: 'Arbres.shp', gdalOptions: null, license: null, email: null, @@ -97,545 +97,545 @@ export default [ crosswalk: { scientific: '(x) => String(x.Espece).split(" - ")[0]', common: '(x) => String(x.Espece).split(" - ")[1]', - dbh: "DiamTronc", + dbh: 'DiamTronc', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Calgary", - short: "Calgary", - long: "City of Calgary", - idName: "calgary", - main: "calgary", + country: 'Canada', + city: 'Calgary', + short: 'Calgary', + long: 'City of Calgary', + idSourceName: 'calgary', + main: 'calgary', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.calgary.ca/api/views/tfs4-3wwa/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.calgary.ca/api/views/tfs4-3wwa/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "COMMON_NAME", - genus: "GENUS", - species: "SPECIES", - variety: "CULTIVAR", - dbh: "DBH_CM", + common: 'COMMON_NAME', + genus: 'GENUS', + species: 'SPECIES', + variety: 'CULTIVAR', + dbh: 'DBH_CM', health: '(x) => {\n if (x.TREE_CONDITION_RATING_PERC >= 70) return "Good";\n if (x.TREE_CONDITION_RATING_PERC >= 50) return "Fair";\n return "Poor";\n // I have no idea\n }', - idReference: "WAM_ID", + idReference: 'WAM_ID', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Edmonton", - short: "Edmonton", - long: "City of Edmonton", - idName: "edmonton", - main: "edmonton", + country: 'Canada', + city: 'Edmonton', + short: 'Edmonton', + long: 'City of Edmonton', + idSourceName: 'edmonton', + main: 'edmonton', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.edmonton.ca/api/views/eecg-fc54/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.edmonton.ca/api/views/eecg-fc54/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - dbh: "DIAMETER_BREAST_HEIGHT", - scientific: "SPECIES_BOTANICAL", - common: "SPECIES_COMMON", - health: "CONDITION_PERCENT", - planted: "PLANTED_DATE", - location: "LOCATION_TYPE", - idReference: "id", + dbh: 'DIAMETER_BREAST_HEIGHT', + scientific: 'SPECIES_BOTANICAL', + common: 'SPECIES_COMMON', + health: 'CONDITION_PERCENT', + planted: 'PLANTED_DATE', + location: 'LOCATION_TYPE', + idReference: 'id', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Ottawa", - short: "Ottawa", - long: "Ottawa", - idName: "ottawa", - main: "ottawa", + country: 'Canada', + city: 'Ottawa', + short: 'Ottawa', + long: 'Ottawa', + idSourceName: 'ottawa', + main: 'ottawa', center: null, latitude: null, longitude: null, - info: "https://ouverte.ottawa.ca/datasets/inventaire-des-arbres", + info: 'https://ouverte.ottawa.ca/datasets/inventaire-des-arbres', broken: true, download: - "https://opendata.arcgis.com/datasets/451e904e2753453eb699b2e853ab5857_1.csv", - format: "csv", + 'https://opendata.arcgis.com/datasets/451e904e2753453eb699b2e853ab5857_1.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "SPECIES", idReference: "SAP_ID" }, + crosswalk: { scientific: 'SPECIES', idReference: 'SAP_ID' }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Moncton", - short: "Moncton", - long: "Moncton", - idName: "moncton", - main: "moncton", + country: 'Canada', + city: 'Moncton', + short: 'Moncton', + long: 'Moncton', + idSourceName: 'moncton', + main: 'moncton', center: null, latitude: null, longitude: null, - info: "http://ouvert.moncton.ca/datasets/arbres", + info: 'http://ouvert.moncton.ca/datasets/arbres', broken: false, download: - "https://opendata.arcgis.com/datasets/60d5b564e732444b81a650c7c4aa548a_0.csv?outSR=%7B%22latestWkid%22%3A2953%2C%22wkid%22%3A2036%7D", - format: "csv", + 'https://opendata.arcgis.com/datasets/60d5b564e732444b81a650c7c4aa548a_0.csv?outSR=%7B%22latestWkid%22%3A2953%2C%22wkid%22%3A2036%7D', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "BOTNAME", - dbh: "DIAM", - height: "HT", - updated: "edited_date", + common: 'BOTNAME', + dbh: 'DIAM', + height: 'HT', + updated: 'edited_date', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Waterloo", - short: "Waterloo", - long: "Waterloo", - idName: "waterloo", - main: "waterloo", + country: 'Canada', + city: 'Waterloo', + short: 'Waterloo', + long: 'Waterloo', + idSourceName: 'waterloo', + main: 'waterloo', center: null, latitude: null, longitude: null, - info: "http://data.waterloo.ca/datasets/2447415303e74bb9acdf0f43c2236b72_0", + info: 'http://data.waterloo.ca/datasets/2447415303e74bb9acdf0f43c2236b72_0', broken: false, download: - "https://opendata.arcgis.com/datasets/2447415303e74bb9acdf0f43c2236b72_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/2447415303e74bb9acdf0f43c2236b72_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "COM_NAME", - scientific: "LATIN_NAME", - location: "TREE_TYPE", - dbh: "DBH_CM", - idReference: "OBJECTID", + common: 'COM_NAME', + scientific: 'LATIN_NAME', + location: 'TREE_TYPE', + dbh: 'DBH_CM', + idReference: 'OBJECTID', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Winnipeg", - short: "Winnipeg", - long: "Winnipeg", - idName: "winnipeg", - main: "winnipeg", + country: 'Canada', + city: 'Winnipeg', + short: 'Winnipeg', + long: 'Winnipeg', + idSourceName: 'winnipeg', + main: 'winnipeg', center: null, latitude: null, longitude: null, - info: "https://data.winnipeg.ca/Parks/Tree-Inventory-Map/xyma-gm38", + info: 'https://data.winnipeg.ca/Parks/Tree-Inventory-Map/xyma-gm38', broken: false, download: - "https://data.winnipeg.ca/api/views/h923-dxid/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.winnipeg.ca/api/views/h923-dxid/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - scientific: "botanical", - common: "common", - dbh: "dbh", + idReference: 'tree_id', + scientific: 'botanical', + common: 'common', + dbh: 'dbh', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Vancouver", - short: "Vancouver", - long: "Vancouver", - idName: "vancouver", - main: "vancouver", + country: 'Canada', + city: 'Vancouver', + short: 'Vancouver', + long: 'Vancouver', + idSourceName: 'vancouver', + main: 'vancouver', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://opendata.vancouver.ca/explore/dataset/street-trees/download/?format=geojson&lang=en", - format: "geojson", + 'https://opendata.vancouver.ca/explore/dataset/street-trees/download/?format=geojson&lang=en', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - genus: "genus_name", - species: "species_name", - variety: "cultivar_name", - common: "common_name", - height: "height_range_id", + idReference: 'tree_id', + genus: 'genus_name', + species: 'species_name', + variety: 'cultivar_name', + common: 'common_name', + height: 'height_range_id', dbh: (x) => Number(x.diameter) * 2.54, - planted: "date_planted", + planted: 'date_planted', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Surrey", - short: "Surrey", - long: "City of Surrey", - idName: "surrey", - main: "surrey", + country: 'Canada', + city: 'Surrey', + short: 'Surrey', + long: 'City of Surrey', + idSourceName: 'surrey', + main: 'surrey', center: null, latitude: null, longitude: null, - info: "https://data.surrey.ca/dataset/park-specimen-trees", + info: 'https://data.surrey.ca/dataset/park-specimen-trees', broken: true, download: - "http://data.surrey.ca/dataset/634d2f06-2214-49b3-9309-4baa51b61ec4/resource/86625e14-8d09-45e8-9b91-9d301d32b10e/download/parkspecimentrees.csv", - format: "csv", + 'http://data.surrey.ca/dataset/634d2f06-2214-49b3-9309-4baa51b61ec4/resource/86625e14-8d09-45e8-9b91-9d301d32b10e/download/parkspecimentrees.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "TREE_GENUS", - species: "TREE_SPECIES", - variety: "TREE_VARIETY", - ule: "YRS_LIFE_EXPECTANCY", + genus: 'TREE_GENUS', + species: 'TREE_SPECIES', + variety: 'TREE_VARIETY', + ule: 'YRS_LIFE_EXPECTANCY', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Toronto", - short: "Toronto", - long: "Toronto", - idName: "toronto", - main: "toronto", + country: 'Canada', + city: 'Toronto', + short: 'Toronto', + long: 'Toronto', + idSourceName: 'toronto', + main: 'toronto', center: null, latitude: null, longitude: null, - info: "https://open.toronto.ca/dataset/street-tree-data/", + info: 'https://open.toronto.ca/dataset/street-tree-data/', broken: true, download: - "https://ckan0.cf.opendata.inter.prod-toronto.ca/download_resource/c1229af1-8ab6-4c71-b131-8be12da59c8e", - format: "zip", - filename: "TMMS_Open_Data_WGS84.shp", + 'https://ckan0.cf.opendata.inter.prod-toronto.ca/download_resource/c1229af1-8ab6-4c71-b131-8be12da59c8e', + format: 'zip', + filename: 'TMMS_Open_Data_WGS84.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - dbh: "DBH_TRUNK", - common: "COMMON_NAM", - scientific: "BOTANICAL_", + dbh: 'DBH_TRUNK', + common: 'COMMON_NAM', + scientific: 'BOTANICAL_', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Strathcona", - short: "Strathcona", - long: "Strathcona", - idName: "strathcona", - main: "strathcona", + country: 'Canada', + city: 'Strathcona', + short: 'Strathcona', + long: 'Strathcona', + idSourceName: 'strathcona', + main: 'strathcona', center: null, latitude: null, longitude: null, - info: "https://data.strathcona.ca/Environment/Tree/v78i-7ntw", + info: 'https://data.strathcona.ca/Environment/Tree/v78i-7ntw', broken: true, download: - "https://data.strathcona.ca/api/views/v78i-7ntw/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.strathcona.ca/api/views/v78i-7ntw/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { idReference: "TreeSiteID", common: "Name" }, + crosswalk: { idReference: 'TreeSiteID', common: 'Name' }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Regina", - short: "Regina", - long: "Regina", - idName: "regina", - main: "regina", + country: 'Canada', + city: 'Regina', + short: 'Regina', + long: 'Regina', + idSourceName: 'regina', + main: 'regina', center: null, latitude: null, longitude: null, - info: "http://open.regina.ca/dataset/city-of-regina-tree-inventory", + info: 'http://open.regina.ca/dataset/city-of-regina-tree-inventory', broken: false, download: - "https://ckanprodstorage.blob.core.windows.net/opendata/Tree/SHP_ZIP/shp.Tree.zip", - format: "zip", + 'https://ckanprodstorage.blob.core.windows.net/opendata/Tree/SHP_ZIP/shp.Tree.zip', + format: 'zip', filename: null, - gdalOptions: "-skipfailures", + gdalOptions: '-skipfailures', license: null, email: null, contact: null, crosswalk: { - common: "Species", - owner: "Ownership", - planted: "Year_Plant", - dbh: "Diameter", - cost: "Tree_Value", + common: 'Species', + owner: 'Ownership', + planted: 'Year_Plant', + dbh: 'Diameter', + cost: 'Tree_Value', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "North Vancouver", - short: "North Vancouver", - long: "North Vancouver", - idName: "north_vancouver", - main: "north_vancouver", + country: 'Canada', + city: 'North Vancouver', + short: 'North Vancouver', + long: 'North Vancouver', + idSourceName: 'north_vancouver', + main: 'north_vancouver', center: null, latitude: null, longitude: null, - info: "http://geoweb.dnv.org/data/index.php", + info: 'http://geoweb.dnv.org/data/index.php', broken: false, - download: "http://geoweb.dnv.org/Products/Data/SHP/EnvStreetTree_shp.zip", - format: "zip", + download: 'http://geoweb.dnv.org/Products/Data/SHP/EnvStreetTree_shp.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "COMMONNAME", - genus: "GENUS", - species: "SPECIES", - dbh: "DBH_CM", - height: "HEIGHT_M", - health: "CONDITION", - idReference: "TAGNUMBER", - location: "AM_TYPE_RE", + common: 'COMMONNAME', + genus: 'GENUS', + species: 'SPECIES', + dbh: 'DBH_CM', + height: 'HEIGHT_M', + health: 'CONDITION', + idReference: 'TAGNUMBER', + location: 'AM_TYPE_RE', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "White Rock", - short: "White Rock", - long: "City of White Rock", - idName: "white_rock", - main: "white_rock", + country: 'Canada', + city: 'White Rock', + short: 'White Rock', + long: 'City of White Rock', + idSourceName: 'white_rock', + main: 'white_rock', center: null, latitude: null, longitude: null, - info: "http://data.whiterockcity.ca/dataset/tree", + info: 'http://data.whiterockcity.ca/dataset/tree', broken: true, download: - "http://wroms.whiterockcity.ca/opendata/GIS/Data/Spatial/Parks/SHP/Tree.zip", - format: "zip", - filename: "Open_data/GIS/Data/Spatial/Parks/SHP/Tree.shp", + 'http://wroms.whiterockcity.ca/opendata/GIS/Data/Spatial/Parks/SHP/Tree.zip', + format: 'zip', + filename: 'Open_data/GIS/Data/Spatial/Parks/SHP/Tree.shp', gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "SpeciesNam", idReference: "Tree_ID" }, + crosswalk: { scientific: 'SpeciesNam', idReference: 'Tree_ID' }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Kelowna", - short: "Kelowna", - long: "Kelowna", - idName: "kelowna", - main: "kelowna", + country: 'Canada', + city: 'Kelowna', + short: 'Kelowna', + long: 'Kelowna', + idSourceName: 'kelowna', + main: 'kelowna', center: null, latitude: null, longitude: null, - info: "http://opendata.kelowna.ca/datasets/39d13a47b8f94cce82a9b4c86efc8ee7/data?geometry=-119.693%2C49.577%2C-119.178%2C49.887", + info: 'http://opendata.kelowna.ca/datasets/39d13a47b8f94cce82a9b4c86efc8ee7/data?geometry=-119.693%2C49.577%2C-119.178%2C49.887', broken: false, download: - "https://opendata.arcgis.com/datasets/39d13a47b8f94cce82a9b4c86efc8ee7_114.zip?outSR=26911", - format: "zip", + 'https://opendata.arcgis.com/datasets/39d13a47b8f94cce82a9b4c86efc8ee7_114.zip?outSR=26911', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "GENUS", - species: "species", - common: "species_co", - dbh: "DBH", - idReference: "SITE_ID", + genus: 'GENUS', + species: 'species', + common: 'species_co', + dbh: 'DBH', + idReference: 'SITE_ID', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Welland", - short: "Welland", - long: "Welland", - idName: "welland", - main: "welland", + country: 'Canada', + city: 'Welland', + short: 'Welland', + long: 'Welland', + idSourceName: 'welland', + main: 'welland', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/welland::welland-trees", + info: 'http://hub.arcgis.com/datasets/welland::welland-trees', broken: true, download: - "https://opendata.arcgis.com/datasets/4357fb7835fe49b39197a9440b2e868b_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/4357fb7835fe49b39197a9440b2e868b_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - note: "Genus", - dbh: "DiamDBH", - planted: "DatePlant", - location: "PlantArea", + note: 'Genus', + dbh: 'DiamDBH', + planted: 'DatePlant', + location: 'PlantArea', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Ajax", - short: "Ajax", - long: "Ajax", - idName: "ajax", - main: "ajax", + country: 'Canada', + city: 'Ajax', + short: 'Ajax', + long: 'Ajax', + idSourceName: 'ajax', + main: 'ajax', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/TownofAjax::town-trees", + info: 'http://hub.arcgis.com/datasets/TownofAjax::town-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/c5d5ff5351a54fdb8d3934abbb5cda9a_8.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/c5d5ff5351a54fdb8d3934abbb5cda9a_8.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - dbh: "DBH", - common: "TYPE", - updated: "LAST_EDI_1", - note: "COMMENTS", + dbh: 'DBH', + common: 'TYPE', + updated: 'LAST_EDI_1', + note: 'COMMENTS', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Prince George", - short: "Prince George", - long: "Prince George", - idName: "prince_george", - main: "prince_george", + country: 'Canada', + city: 'Prince George', + short: 'Prince George', + long: 'Prince George', + idSourceName: 'prince_george', + main: 'prince_george', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/CityofPG::trees", + info: 'http://hub.arcgis.com/datasets/CityofPG::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/054e46bee4594eb787d574266c832430_3.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/054e46bee4594eb787d574266c832430_3.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - planted: "TreePlantD", - common: "CommonName", - genus: "GenusName", - species: "SpeciesNam", - variety: "VarietyNam", - age: "TreeAge", - height: "TreeHeight", - dbh: "DBH", - crown: "TreeCrownA", - health: "ConditionD", - location: "TreeClassi", + planted: 'TreePlantD', + common: 'CommonName', + genus: 'GenusName', + species: 'SpeciesNam', + variety: 'VarietyNam', + age: 'TreeAge', + height: 'TreeHeight', + dbh: 'DBH', + crown: 'TreeCrownA', + health: 'ConditionD', + location: 'TreeClassi', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Oakville", - short: "Oakville", - long: "Oakville", - idName: "oakville", - main: "oakville", + country: 'Canada', + city: 'Oakville', + short: 'Oakville', + long: 'Oakville', + idSourceName: 'oakville', + main: 'oakville', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/ExploreOakville::trees", + info: 'http://hub.arcgis.com/datasets/ExploreOakville::trees', broken: true, download: - "https://opendata.arcgis.com/datasets/66e3b95688394391a433fd29873aff20_10.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/66e3b95688394391a433fd29873aff20_10.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, @@ -644,235 +644,235 @@ export default [ crosswalk: { scientific: '(x) => String(x.SPECIES).split(" - ")[1]', common: '(x) => String(x.SPECIES).split(" - ")[0]', - dbh: "DBH", - height: "HEIGHT", - crown: "CROWN_WIDT", + dbh: 'DBH', + height: 'HEIGHT', + crown: 'CROWN_WIDT', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Victoria", - short: "Victoria", - long: "Victoria", - idName: "victoria_bc", - main: "victoria_bc", + country: 'Canada', + city: 'Victoria', + short: 'Victoria', + long: 'Victoria', + idSourceName: 'victoria_bc', + main: 'victoria_bc', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/VicMap::tree-species", + info: 'http://hub.arcgis.com/datasets/VicMap::tree-species', broken: false, download: - "https://opendata.arcgis.com/datasets/36e90771770542baaa89afddce69195a_15.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/36e90771770542baaa89afddce69195a_15.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Species", - dbh: "DiameterAt", - height: "Height", - age: "PlantingDa", - planted: "YearPlante", - updated: "InventoryD", + scientific: 'Species', + dbh: 'DiameterAt', + height: 'Height', + age: 'PlantingDa', + planted: 'YearPlante', + updated: 'InventoryD', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Kamloops", - short: "Kamloops", - long: "City of Kamloops", - idName: "kamloops", - main: "kamloops", + country: 'Canada', + city: 'Kamloops', + short: 'Kamloops', + long: 'City of Kamloops', + idSourceName: 'kamloops', + main: 'kamloops', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/kamloops::trees", + info: 'http://hub.arcgis.com/datasets/kamloops::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/e14c04be6c6c4692b70147edb937088c_25.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/e14c04be6c6c4692b70147edb937088c_25.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "SPECIES", - spread: "SPREAD", - planted: "PLANTEDYEA", - idReference: "FACILITYID", + common: 'SPECIES', + spread: 'SPREAD', + planted: 'PLANTEDYEA', + idReference: 'FACILITYID', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Chestermere", - short: "Chestermere", - long: "Chestermere", - idName: "chestermere", - main: "chestermere", + country: 'Canada', + city: 'Chestermere', + short: 'Chestermere', + long: 'Chestermere', + idSourceName: 'chestermere', + main: 'chestermere', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/Chestermere::tree-points", + info: 'http://hub.arcgis.com/datasets/Chestermere::tree-points', broken: true, download: - "https://opendata.arcgis.com/datasets/72e47f7c7b194047936ebb0ce3c4d32e_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/72e47f7c7b194047936ebb0ce3c4d32e_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "Species", - scientific: "Species_Sc", - planted: "Date_Plant", - height: "Height__me", - health: "Condition", + common: 'Species', + scientific: 'Species_Sc', + planted: 'Date_Plant', + height: 'Height__me', + health: 'Condition', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "New West", - short: "New West", - long: "New West", - idName: "new_west_west", - main: "new_west_west", + country: 'Canada', + city: 'New West', + short: 'New West', + long: 'New West', + idSourceName: 'new_west_west', + main: 'new_west_west', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/newwestcity::trees-west", + info: 'http://hub.arcgis.com/datasets/newwestcity::trees-west', broken: true, download: - "https://opendata.arcgis.com/datasets/eb043d306e4b4652a10b4b7b51f718ab_102.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/eb043d306e4b4652a10b4b7b51f718ab_102.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Scientific", - common: "Common_Nam", - variety: "Cultivar", + scientific: 'Scientific', + common: 'Common_Nam', + variety: 'Cultivar', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "New West", - short: "New West", - long: "New West", - idName: "new_west_east", - main: "new_west_west", + country: 'Canada', + city: 'New West', + short: 'New West', + long: 'New West', + idSourceName: 'new_west_east', + main: 'new_west_west', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/newwestcity::trees-east", + info: 'http://hub.arcgis.com/datasets/newwestcity::trees-east', broken: true, download: - "https://opendata.arcgis.com/datasets/341e47f1d4cd4b4aa14a8804b992cc7e_101.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/341e47f1d4cd4b4aa14a8804b992cc7e_101.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Scientific", - common: "Common_Nam", - variety: "Cultivar", + scientific: 'Scientific', + common: 'Common_Nam', + variety: 'Cultivar', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Maple Ridge", - short: "Maple Ridge", - long: "Maple Ridge", - idName: "maple_ridge", - main: "maple_ridge", + country: 'Canada', + city: 'Maple Ridge', + short: 'Maple Ridge', + long: 'Maple Ridge', + idSourceName: 'maple_ridge', + main: 'maple_ridge', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/mapleridge::street-tree", + info: 'http://hub.arcgis.com/datasets/mapleridge::street-tree', broken: false, download: - "https://opendata.arcgis.com/datasets/290505c676d64cf09989eca1320aedd3_5.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/290505c676d64cf09989eca1320aedd3_5.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - species: "Species", - common: "CommonName", - variety: "Variety", - genus: "Genus", + species: 'Species', + common: 'CommonName', + variety: 'Variety', + genus: 'Genus', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Barrie", - short: "Barrie", - long: "Barrie", - idName: "barrie", - main: "barrie", + country: 'Canada', + city: 'Barrie', + short: 'Barrie', + long: 'Barrie', + idSourceName: 'barrie', + main: 'barrie', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/barrie::tree-location", + info: 'http://hub.arcgis.com/datasets/barrie::tree-location', broken: false, download: - "https://opendata.arcgis.com/datasets/16123463ba3d48859a83f4883a414a45_7.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/16123463ba3d48859a83f4883a414a45_7.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { idReference: "ASSETID", location: "TREETYPE" }, + crosswalk: { idReference: 'ASSETID', location: 'TREETYPE' }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Victoriaville", - short: "Victoriaville", - long: "Victoriaville", - idName: "victoriaville", - main: "victoriaville", + country: 'Canada', + city: 'Victoriaville', + short: 'Victoriaville', + long: 'Victoriaville', + idSourceName: 'victoriaville', + main: 'victoriaville', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/victoriaville::tree", + info: 'http://hub.arcgis.com/datasets/victoriaville::tree', broken: true, download: - "https://opendata.arcgis.com/datasets/ae1c4b5613334d8a823359565fafb911_12.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/ae1c4b5613334d8a823359565fafb911_12.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, @@ -884,19 +884,19 @@ export default [ isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Lethbridge", - short: "Lethbridge", - long: "Lethbridge", - idName: "lethbridge_ca", - main: "lethbridge_ca", + country: 'Canada', + city: 'Lethbridge', + short: 'Lethbridge', + long: 'Lethbridge', + idSourceName: 'lethbridge_ca', + main: 'lethbridge_ca', center: null, latitude: null, longitude: null, - info: "http://opendata.lethbridge.ca/datasets/82841132047d47659508f60c52f6346a_0", + info: 'http://opendata.lethbridge.ca/datasets/82841132047d47659508f60c52f6346a_0', broken: false, download: - "https://opendata.arcgis.com/datasets/82841132047d47659508f60c52f6346a_0.zip", + 'https://opendata.arcgis.com/datasets/82841132047d47659508f60c52f6346a_0.zip', format: null, filename: null, gdalOptions: null, @@ -904,32 +904,32 @@ export default [ email: null, contact: null, crosswalk: { - common: "species", - dbh: "diameter", - height: "height", - spread: "spread", - trunks: "trunks", - planted: "planted", - idReference: "AssetID", + common: 'species', + dbh: 'diameter', + height: 'height', + spread: 'spread', + trunks: 'trunks', + planted: 'planted', + idReference: 'AssetID', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Kitchener", - short: "Kitchener", - long: "Kitchener", - idName: "kitchener_ca", - main: "kitchener_ca", + country: 'Canada', + city: 'Kitchener', + short: 'Kitchener', + long: 'Kitchener', + idSourceName: 'kitchener_ca', + main: 'kitchener_ca', center: null, latitude: null, longitude: null, - info: "https://open-kitchenergis.opendata.arcgis.com/datasets/e42a9601b87a4417b3d3d15a0f596f64_0", + info: 'https://open-kitchenergis.opendata.arcgis.com/datasets/e42a9601b87a4417b3d3d15a0f596f64_0', broken: false, download: - "https://opendata.arcgis.com/datasets/e42a9601b87a4417b3d3d15a0f596f64_0.zip", + 'https://opendata.arcgis.com/datasets/e42a9601b87a4417b3d3d15a0f596f64_0.zip', format: null, filename: null, gdalOptions: null, @@ -937,32 +937,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "TREEID", - common: "SPECIES_NA", - scientific: "SPECIES_LA", - planted: "YEAR_PLANT", - updated: "UPDATE_DAT", - dbh: "DBH", - note: "NOTES", + idReference: 'TREEID', + common: 'SPECIES_NA', + scientific: 'SPECIES_LA', + planted: 'YEAR_PLANT', + updated: 'UPDATE_DAT', + dbh: 'DBH', + note: 'NOTES', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Missisauga", - short: "Missisauga", - long: "Missisauga", - idName: "mississauga_ca", - main: "mississauga_ca", + country: 'Canada', + city: 'Missisauga', + short: 'Missisauga', + long: 'Missisauga', + idSourceName: 'mississauga_ca', + main: 'mississauga_ca', center: null, latitude: null, longitude: null, - info: "http://data.mississauga.ca/datasets/city-owned-tree-inventory", + info: 'http://data.mississauga.ca/datasets/city-owned-tree-inventory', broken: false, download: - "https://opendata.arcgis.com/datasets/b3f7ee3952094b87b4a1d82d5f19dc0e_0.zip?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D", + 'https://opendata.arcgis.com/datasets/b3f7ee3952094b87b4a1d82d5f19dc0e_0.zip?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D', format: null, filename: null, gdalOptions: null, @@ -970,29 +970,29 @@ export default [ email: null, contact: null, crosswalk: { - dbh: "DIAM", - planted: "INSTDATE", - common: "CBOTDESC", - updated: "MODDTTM", + dbh: 'DIAM', + planted: 'INSTDATE', + common: 'CBOTDESC', + updated: 'MODDTTM', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "St Catharines", - short: "St Catharines", - long: "St Catharines", - idName: "st_catharines_ca", - main: "st_catharines_ca", + country: 'Canada', + city: 'St Catharines', + short: 'St Catharines', + long: 'St Catharines', + idSourceName: 'st_catharines_ca', + main: 'st_catharines_ca', center: null, latitude: null, longitude: null, - info: "https://niagaraopendata.ca/dataset/st-catharines-trees", + info: 'https://niagaraopendata.ca/dataset/st-catharines-trees', broken: false, download: - "https://niagaraopendata.ca/dataset/06257b18-da24-424e-a609-48d6f3d4f018/resource/c549fce9-f032-48f9-9c0a-2adc9d1e0a40/download/trees.csv", + 'https://niagaraopendata.ca/dataset/06257b18-da24-424e-a609-48d6f3d4f018/resource/c549fce9-f032-48f9-9c0a-2adc9d1e0a40/download/trees.csv', format: null, filename: null, gdalOptions: null, @@ -1000,30 +1000,30 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "BOTANICAL", - common: "COMMON", - dbh: "DBH", - trunks: "STEMS", + scientific: 'BOTANICAL', + common: 'COMMON', + dbh: 'DBH', + trunks: 'STEMS', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "York", - short: "York", - long: "York", - id: "york_ca", - idName: "york_ca", - main: "york_ca", + country: 'Canada', + city: 'York', + short: 'York', + long: 'York', + id: 'york_ca', + idSourceName: 'york_ca', + main: 'york_ca', center: null, latitude: null, longitude: null, - info: "https://insights-york.opendata.arcgis.com/datasets/street-trees", + info: 'https://insights-york.opendata.arcgis.com/datasets/street-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/293d80c24bf54a4f8ab66bddaeaab184_0.zip", + 'https://opendata.arcgis.com/datasets/293d80c24bf54a4f8ab66bddaeaab184_0.zip', format: null, filename: null, gdalOptions: null, @@ -1031,32 +1031,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "TREEID", - scientific: "SPECIES", - common: "COMMONNAME", - planted: "YEARPLANTE", - dbh: "CURRENTDBH", - height: "TREEHEIGHT", - owner: "OWNERSHIP", + idReference: 'TREEID', + scientific: 'SPECIES', + common: 'COMMONNAME', + planted: 'YEARPLANTE', + dbh: 'CURRENTDBH', + height: 'TREEHEIGHT', + owner: 'OWNERSHIP', }, }, { isoAlpha2: 'CA', isoAlpha3: 'CAN', numericCountryCode: '124', - country: "Canada", - city: "Repentigny", - short: "Repentigny", - long: "Repentigny", - idName: "repentigny_ca", - main: "repentigny_ca", + country: 'Canada', + city: 'Repentigny', + short: 'Repentigny', + long: 'Repentigny', + idSourceName: 'repentigny_ca', + main: 'repentigny_ca', center: null, latitude: null, longitude: null, - info: "https://www.donneesquebec.ca/recherche/fr/dataset/vrep-arbres", + info: 'https://www.donneesquebec.ca/recherche/fr/dataset/vrep-arbres', broken: false, download: - "https://www.donneesquebec.ca/recherche/dataset/d65f10dd-9948-4b52-bc4c-b40261e2c593/resource/850da247-cf55-45fd-82e7-bcc9693a7e9e/download/arbres.zip", + 'https://www.donneesquebec.ca/recherche/dataset/d65f10dd-9948-4b52-bc4c-b40261e2c593/resource/850da247-cf55-45fd-82e7-bcc9693a7e9e/download/arbres.zip', format: null, filename: null, gdalOptions: null, @@ -1064,13 +1064,13 @@ export default [ email: null, contact: null, crosswalk: { - common: "ESSENCE_FR", - scientific: "ESSENCE_LA", - dbh: "DHP", - health: "ETAT", - owner: "PROPRIETE", - planted: "DATE_PLANT", - updated: "DATE_RELEV", + common: 'ESSENCE_FR', + scientific: 'ESSENCE_LA', + dbh: 'DHP', + health: 'ETAT', + owner: 'PROPRIETE', + planted: 'DATE_PLANT', + updated: 'DATE_RELEV', }, }, ]; diff --git a/sources/chile.js b/sources/chile.js index 3a916b3..0abb2e6 100644 --- a/sources/chile.js +++ b/sources/chile.js @@ -3,33 +3,33 @@ const country = [ isoAlpha2: 'CH', isoAlpha3: 'CHL', numericCountryCode: '152', - country: "Chile", - } -] + country: 'Chile', + }, +]; export default [ { isoAlpha2: 'CH', isoAlpha3: 'CHL', numericCountryCode: '152', - country: "Chile", - city: "Chile (OSM)", - short: "Chile (OSM)", - long: "Chile (OSM)", - idName: "chile_osm", - main: "chile_osm", + country: 'Chile', + city: 'Chile (OSM)', + short: 'Chile (OSM)', + long: 'Chile (OSM)', + idSourceName: 'chile_osm', + main: 'chile_osm', center: null, latitude: null, longitude: null, info: null, broken: false, - download: "https://emscycletours.site44.com/opentrees-data/chile.geojson", + download: 'https://emscycletours.site44.com/opentrees-data/chile.geojson', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { common: "name" }, + crosswalk: { common: 'name' }, }, ]; diff --git a/sources/denmark.js b/sources/denmark.js index 14fe2d4..dfccac6 100644 --- a/sources/denmark.js +++ b/sources/denmark.js @@ -3,39 +3,39 @@ const country = [ isoAlpha2: 'DK', isoAlpha3: 'DNK', numericCountryCode: '208', - country: "Denmark", - } -] + country: 'Denmark', + }, +]; export default [ { isoAlpha2: 'DK', isoAlpha3: 'DNK', numericCountryCode: '208', - country: "Denmark", - city: "Copenhagen", - short: "Copenhagen", - long: "Copenhagen", - idName: "copenhagen", - main: "copenhagen", + country: 'Denmark', + city: 'Copenhagen', + short: 'Copenhagen', + long: 'Copenhagen', + idSourceName: 'copenhagen', + main: 'copenhagen', center: null, latitude: null, longitude: null, - info: "https://www.opendata.dk/city-of-copenhagen/trae_basis", + info: 'https://www.opendata.dk/city-of-copenhagen/trae_basis', broken: false, download: - "https://wfs-kbhkort.kk.dk/k101/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=k101:trae_basis&outputFormat=csv&SRSNAME=EPSG:4326", - format: "csv", + 'https://wfs-kbhkort.kk.dk/k101/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=k101:trae_basis&outputFormat=csv&SRSNAME=EPSG:4326', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "traeart", - common: "dansk_navn", - planted: "planteaar", - health: "sundhed", + scientific: 'traeart', + common: 'dansk_navn', + planted: 'planteaar', + health: 'sundhed', }, }, ]; diff --git a/sources/france.js b/sources/france.js index 54a281e..5c99ff6 100644 --- a/sources/france.js +++ b/sources/france.js @@ -3,671 +3,671 @@ const country = [ isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - } -] + country: 'France', + }, +]; export default [ { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Paris", - short: "Paris", - long: "Paris", - idName: "paris", - main: "paris", + country: 'France', + city: 'Paris', + short: 'Paris', + long: 'Paris', + idSourceName: 'paris', + main: 'paris', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.iledefrance.fr//explore/dataset/les-arbres/download?format=geojson&timezone=Europe/Berlin&use_labels_for_header=false", - format: "geojson", + 'https://data.iledefrance.fr//explore/dataset/les-arbres/download?format=geojson&timezone=Europe/Berlin&use_labels_for_header=false', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "idemplacement", - common: "libellefrancais", - genus: "genre", - species: "espece", - variety: "varieteoucultivar", - dbh: "(x) => (Number(x.circonferenceencm) / 3.14159) * 2", - age: "stadedeveloppement", + idReference: 'idemplacement', + common: 'libellefrancais', + genus: 'genre', + species: 'espece', + variety: 'varieteoucultivar', + dbh: '(x) => (Number(x.circonferenceencm) / 3.14159) * 2', + age: 'stadedeveloppement', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Lyon", - short: "Lyon", - long: "Lyon", - idName: "lyon", - main: "lyon", + country: 'France', + city: 'Lyon', + short: 'Lyon', + long: 'Lyon', + idSourceName: 'lyon', + main: 'lyon', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://download.data.grandlyon.com/ws/grandlyon/abr_arbres_alignement.abrarbre.shp?srsname=EPSG:4326", - format: "zip", - filename: "abr_arbres_alignement.abrarbre.shp", + 'https://download.data.grandlyon.com/ws/grandlyon/abr_arbres_alignement.abrarbre.shp?srsname=EPSG:4326', + format: 'zip', + filename: 'abr_arbres_alignement.abrarbre.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "essence", - variety: "variete", - genus: "genre", - species: "espece", - location: "localisati", - planted: "anneeplant", - idReference: "identifian", - common: "essencefra", + scientific: 'essence', + variety: 'variete', + genus: 'genre', + species: 'espece', + location: 'localisati', + planted: 'anneeplant', + idReference: 'identifian', + common: 'essencefra', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Bordeaux", - short: "Bordeaux", - long: "Bordeaux", - idName: "bordeaux", - main: "bordeaux", + country: 'France', + city: 'Bordeaux', + short: 'Bordeaux', + long: 'Bordeaux', + idSourceName: 'bordeaux', + main: 'bordeaux', center: null, latitude: null, longitude: null, - info: "https://opendata.bordeaux-metropole.fr/explore/dataset/bor_arbres/information/", + info: 'https://opendata.bordeaux-metropole.fr/explore/dataset/bor_arbres/information/', broken: false, download: - "https://opendata.bordeaux-metropole.fr/explore/dataset/bor_arbres/download/?format=geojson&lang=en", - format: "geojson", + 'https://opendata.bordeaux-metropole.fr/explore/dataset/bor_arbres/download/?format=geojson&lang=en', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "nom", - updated: "mdate", - dbh: "diametre", - height: "hauteur", - family: "famille", - variety: "variete", - location: "typo_espace", - health: "statut", - planted: "tranche_age", + scientific: 'nom', + updated: 'mdate', + dbh: 'diametre', + height: 'hauteur', + family: 'famille', + variety: 'variete', + location: 'typo_espace', + health: 'statut', + planted: 'tranche_age', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Nice", - short: "Nice", - long: "Nice", - idName: "nice", - main: "nice", + country: 'France', + city: 'Nice', + short: 'Nice', + long: 'Nice', + idSourceName: 'nice', + main: 'nice', center: null, latitude: null, longitude: null, - info: "https://trouver.datasud.fr/dataset/sync149f50a-cartographie-des-arbres-communaux", + info: 'https://trouver.datasud.fr/dataset/sync149f50a-cartographie-des-arbres-communaux', broken: false, download: - "http://opendata.nicecotedazur.org/data/storage/f/2019-07-22T07%3A41%3A29.958Z/ev-arbre-opendata-2019.geojson", - format: "geojson", + 'http://opendata.nicecotedazur.org/data/storage/f/2019-07-22T07%3A41%3A29.958Z/ev-arbre-opendata-2019.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { idReference: "idENT" }, + crosswalk: { idReference: 'idENT' }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Grenoble", - short: "Grenoble", - long: "Grenoble", - idName: "grenoble", - main: "grenoble", + country: 'France', + city: 'Grenoble', + short: 'Grenoble', + long: 'Grenoble', + idSourceName: 'grenoble', + main: 'grenoble', center: null, latitude: null, longitude: null, - info: "http://data.metropolegrenoble.fr/ckan/dataset/les-arbres-de-grenoble", + info: 'http://data.metropolegrenoble.fr/ckan/dataset/les-arbres-de-grenoble', broken: true, download: - "https://entrepot.metropolegrenoble.fr/opendata/38185-GRE/EspacePublic/json/ARBRES_TERRITOIRE_VDG_EPSG4326.json", - format: "geojson", + 'https://entrepot.metropolegrenoble.fr/opendata/38185-GRE/EspacePublic/json/ARBRES_TERRITOIRE_VDG_EPSG4326.json', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "BIEN_REFERENCE", - genus: "GENRE_BOTA", - species: "ESPECE", - variety: "VARIETE", - age: "STADEDEDEVELOPPEMENT", - note: "REMARQUES", - planted: "ANNEDEPLANTATION", + idReference: 'BIEN_REFERENCE', + genus: 'GENRE_BOTA', + species: 'ESPECE', + variety: 'VARIETE', + age: 'STADEDEDEVELOPPEMENT', + note: 'REMARQUES', + planted: 'ANNEDEPLANTATION', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Montpellier", - short: "Montpellier", - long: "Montpellier", - idName: "montpellier", - main: "montpellier", + country: 'France', + city: 'Montpellier', + short: 'Montpellier', + long: 'Montpellier', + idSourceName: 'montpellier', + main: 'montpellier', center: null, latitude: null, longitude: null, - info: "https://data.montpellier3m.fr/dataset/arbres-dalignement-de-montpellier", + info: 'https://data.montpellier3m.fr/dataset/arbres-dalignement-de-montpellier', broken: false, download: - "https://data.montpellier3m.fr/sites/default/files/ressources/MMM_MTP_ArbresAlign.zip", - format: "zip", - filename: "MMM_MTP_ArbresAlign.shp", + 'https://data.montpellier3m.fr/sites/default/files/ressources/MMM_MTP_ArbresAlign.zip', + format: 'zip', + filename: 'MMM_MTP_ArbresAlign.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "idarbre", - scientific: "nom_latin", - common: "nom_commun", - planted: "plantation", - updated: "releva", - crown: "couronnem", - height: "hauteurm", + idReference: 'idarbre', + scientific: 'nom_latin', + common: 'nom_commun', + planted: 'plantation', + updated: 'releva', + crown: 'couronnem', + height: 'hauteurm', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Grand Paris Seine Ouest", - short: "Grand Paris Seine Ouest", - long: "Grand Paris Seine Ouest", - idName: "grand_paris_seine_ouest", - main: "grand_paris_seine_ouest", + country: 'France', + city: 'Grand Paris Seine Ouest', + short: 'Grand Paris Seine Ouest', + long: 'Grand Paris Seine Ouest', + idSourceName: 'grand_paris_seine_ouest', + main: 'grand_paris_seine_ouest', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/arbres-2/", + info: 'https://www.data.gouv.fr/fr/datasets/arbres-2/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/a10c7776-afa5-4b8a-8050-081788818b55", - format: "zip", - filename: "arbres-v2.shp", + 'https://www.data.gouv.fr/fr/datasets/r/a10c7776-afa5-4b8a-8050-081788818b55', + format: 'zip', + filename: 'arbres-v2.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "genespvar", - height: "hauteur", - planted: "an_plant", - idReference: "id_plant", + scientific: 'genespvar', + height: 'hauteur', + planted: 'an_plant', + idReference: 'id_plant', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Agen", - short: "Agen", - long: "Agen", - idName: "agen", - main: "agen", + country: 'France', + city: 'Agen', + short: 'Agen', + long: 'Agen', + idSourceName: 'agen', + main: 'agen', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/fededc1c-6e42-4a6d-9469-849fd956fbfe", - format: "zip", - filename: "Arbres.shp", + 'https://www.data.gouv.fr/fr/datasets/r/fededc1c-6e42-4a6d-9469-849fd956fbfe', + format: 'zip', + filename: 'Arbres.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "id_ponctue", - common: "espece_arb", - scientific: "nom_latin", + idReference: 'id_ponctue', + common: 'espece_arb', + scientific: 'nom_latin', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Saint Quentinois", - short: "Saint Quentinois", - long: "Agglomération du Saint Quentinois", - idName: "saint_quentinois", - main: "saint_quentinois", + country: 'France', + city: 'Saint Quentinois', + short: 'Saint Quentinois', + long: 'Agglomération du Saint Quentinois', + idSourceName: 'saint_quentinois', + main: 'saint_quentinois', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/c6000378-1f3c-4c0c-8f62-9a5b72dc7a85", - format: "zip", - filename: "ARBRES.shp", + 'https://www.data.gouv.fr/fr/datasets/r/c6000378-1f3c-4c0c-8f62-9a5b72dc7a85', + format: 'zip', + filename: 'ARBRES.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "nomlatin", - common: "nomfrancai", - updated: "EditDate", - age: "fk_stadede", - dbh: "tronc_diam", - height: "haut_tot", - idReference: "id_arbre", + scientific: 'nomlatin', + common: 'nomfrancai', + updated: 'EditDate', + age: 'fk_stadede', + dbh: 'tronc_diam', + height: 'haut_tot', + idReference: 'id_arbre', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Metz", - short: "Metz", - long: "Metz", - idName: "metz", - main: "metz", + country: 'France', + city: 'Metz', + short: 'Metz', + long: 'Metz', + idSourceName: 'metz', + main: 'metz', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/3aa28eaa-9ee4-49ff-bb73-74c21d14268d", - format: "zip", - filename: "vrd_esv_arb.shp", + 'https://www.data.gouv.fr/fr/datasets/r/3aa28eaa-9ee4-49ff-bb73-74c21d14268d', + format: 'zip', + filename: 'vrd_esv_arb.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - dbh: "diametre", - scientific: "nom_espece", - note: "observatio", + dbh: 'diametre', + scientific: 'nom_espece', + note: 'observatio', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Seine-Saint-Denis", - short: "Seine-Saint-Denis", - long: "Seine-Saint-Denis", - idName: "seine_saint_denis", - main: "seine_saint_denis", + country: 'France', + city: 'Seine-Saint-Denis', + short: 'Seine-Saint-Denis', + long: 'Seine-Saint-Denis', + idSourceName: 'seine_saint_denis', + main: 'seine_saint_denis', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/c631e78d-4d15-44eb-a40d-cd593f0e1bed", - format: "zip", - filename: "fr-dpt93-1646.shp", + 'https://www.data.gouv.fr/fr/datasets/r/c631e78d-4d15-44eb-a40d-cd593f0e1bed', + format: 'zip', + filename: 'fr-dpt93-1646.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - height: "hauteur", - scientific: "essence", - age: "stade_dvlp", - dbh: "(x) => `dbh: ${x.circonfere}`", + height: 'hauteur', + scientific: 'essence', + age: 'stade_dvlp', + dbh: '(x) => `dbh: ${x.circonfere}`', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Versailles", - short: "Versailles", - long: "Versailles", - idName: "versailles", - main: "versailles", + country: 'France', + city: 'Versailles', + short: 'Versailles', + long: 'Versailles', + idSourceName: 'versailles', + main: 'versailles', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://www-cavgp.opendata.arcgis.com/datasets/c41b83ccc9c14c608be3a136da9244c6_2.geojson", - format: "geojson", + 'http://www-cavgp.opendata.arcgis.com/datasets/c41b83ccc9c14c608be3a136da9244c6_2.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "ESPECE", common: "FRANCAIS" }, + crosswalk: { scientific: 'ESPECE', common: 'FRANCAIS' }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Nevers", - short: "Nevers", - long: "Ville de Nevers", - idName: "nevers", - main: "nevers", + country: 'France', + city: 'Nevers', + short: 'Nevers', + long: 'Ville de Nevers', + idSourceName: 'nevers', + main: 'nevers', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/dbdc2068-ee22-474d-8a42-261554482a4f", - format: "zip", - filename: "ARBRE_ALIGNEMENT.shp", + 'https://www.data.gouv.fr/fr/datasets/r/dbdc2068-ee22-474d-8a42-261554482a4f', + format: 'zip', + filename: 'ARBRE_ALIGNEMENT.shp', gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "espece" }, + crosswalk: { scientific: 'espece' }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Toulouse", - short: "Toulouse", - long: "Toulouse Métropole", - idName: "toulouse", - main: "toulouse", + country: 'France', + city: 'Toulouse', + short: 'Toulouse', + long: 'Toulouse Métropole', + idSourceName: 'toulouse', + main: 'toulouse', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/arbres-dalignement-toulouse/", + info: 'https://www.data.gouv.fr/fr/datasets/arbres-dalignement-toulouse/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/b5b275e5-ef20-43c4-ad3f-5604c67a75a3", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/b5b275e5-ef20-43c4-ad3f-5604c67a75a3', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { idReference: "id", common: "patrimoine" }, + crosswalk: { idReference: 'id', common: 'patrimoine' }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Orléans", - short: "Orléans", + country: 'France', + city: 'Orléans', + short: 'Orléans', long: "Ville d'Orléans", - idName: "orleans", - main: "orleans", + idSourceName: 'orleans', + main: 'orleans', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/arbres-ville-dorleans/", + info: 'https://www.data.gouv.fr/fr/datasets/arbres-ville-dorleans/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/804b8b61-9f8f-4a0d-8524-35ea5d6e265f", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/804b8b61-9f8f-4a0d-8524-35ea5d6e265f', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "id_arbre", + idReference: 'id_arbre', genus: '(x) => String(x.genre).replace(/ \\?/, "")', species: '(x) => String(x.species).replace(/ \\?/, "")', - variety: "variete", - planted: "date_plant", + variety: 'variete', + planted: 'date_plant', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Saint-Egrève", - short: "Saint-Egrève", - long: "Ville de Saint-Egrève", - idName: "saint_egreve", - main: "saint_egreve", + country: 'France', + city: 'Saint-Egrève', + short: 'Saint-Egrève', + long: 'Ville de Saint-Egrève', + idSourceName: 'saint_egreve', + main: 'saint_egreve', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/les-arbres-de-saint-egreve/", + info: 'https://www.data.gouv.fr/fr/datasets/les-arbres-de-saint-egreve/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/2bda9508-27e5-4de6-aba3-fdb0d9059a22", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/2bda9508-27e5-4de6-aba3-fdb0d9059a22', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "genre", - species: "espece", - planted: "anne_plan", - common: "essence", + genus: 'genre', + species: 'espece', + planted: 'anne_plan', + common: 'essence', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Bayonne", - short: "Bayonne", - long: "Ville de Bayonne", - idName: "bayonne", - main: "bayonne", + country: 'France', + city: 'Bayonne', + short: 'Bayonne', + long: 'Ville de Bayonne', + idSourceName: 'bayonne', + main: 'bayonne', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/arbres-dalignement-bayonne/", + info: 'https://www.data.gouv.fr/fr/datasets/arbres-dalignement-bayonne/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/e99bddd1-384b-4954-9f4f-483bb0fcaef0", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/e99bddd1-384b-4954-9f4f-483bb0fcaef0', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "genre", - species: "espece", - height: "hauteur", - common: "vernaculai", - variety: "variete", - planted: "anne_plan", - scientific: "gev", - dbh: "circonf", - age: "agechrono", + genus: 'genre', + species: 'espece', + height: 'hauteur', + common: 'vernaculai', + variety: 'variete', + planted: 'anne_plan', + scientific: 'gev', + dbh: 'circonf', + age: 'agechrono', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Issy-les-Moulineaux", - short: "Issy-les-Moulineaux", + country: 'France', + city: 'Issy-les-Moulineaux', + short: 'Issy-les-Moulineaux', long: "Ville d'Issy-les-Moulineaux", - idName: "issy", - main: "issy", + idSourceName: 'issy', + main: 'issy', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/r/578636b3-e9ca-4aa7-b298-e69fd0f3acc9", + info: 'https://www.data.gouv.fr/fr/datasets/r/578636b3-e9ca-4aa7-b298-e69fd0f3acc9', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/578636b3-e9ca-4aa7-b298-e69fd0f3acc9", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/578636b3-e9ca-4aa7-b298-e69fd0f3acc9', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "essence_sci", - common: "essence_com", - dbh: "circonferen", - height: "hauteur", - age: "classe_age", - health: "statut_emp", - updated: "date_maj", + scientific: 'essence_sci', + common: 'essence_com', + dbh: 'circonferen', + height: 'hauteur', + age: 'classe_age', + health: 'statut_emp', + updated: 'date_maj', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Rennes", - short: "Rennes", - long: "Rennes Métropole", - idName: "rennes1", - main: "rennes1", + country: 'France', + city: 'Rennes', + short: 'Rennes', + long: 'Rennes Métropole', + idSourceName: 'rennes1', + main: 'rennes1', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/arbres-dornement-des-espaces-verts-de-la-ville-de-rennes-1/", + info: 'https://www.data.gouv.fr/fr/datasets/arbres-dornement-des-espaces-verts-de-la-ville-de-rennes-1/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/85d25eb0-b34e-4559-884d-ac052e62c620", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/85d25eb0-b34e-4559-884d-ac052e62c620', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - genus: "genre", - species: "espece", - planted: "date_plant", - variety: "variete", - dbh: "circonfere", + genus: 'genre', + species: 'espece', + planted: 'date_plant', + variety: 'variete', + dbh: 'circonfere', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Rennes", - short: "Rennes", - long: "Rennes Métropole", - idName: "rennes2", - main: "rennes1", + country: 'France', + city: 'Rennes', + short: 'Rennes', + long: 'Rennes Métropole', + idSourceName: 'rennes2', + main: 'rennes1', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/arbres-dalignement-en-accompagnement-de-voirie-sur-la-ville-de-rennes-1/", + info: 'https://www.data.gouv.fr/fr/datasets/arbres-dalignement-en-accompagnement-de-voirie-sur-la-ville-de-rennes-1/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/c9cf6518-267c-4aa4-bdbe-d1602f78b07f", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/c9cf6518-267c-4aa4-bdbe-d1602f78b07f', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "numero", - planted: "date_plant", - health: "etat", - genus: "genre", - species: "espece", - variety: "variete", - dbh: "circonfere", - height: "hauteur", + idReference: 'numero', + planted: 'date_plant', + health: 'etat', + genus: 'genre', + species: 'espece', + variety: 'variete', + dbh: 'circonfere', + height: 'hauteur', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Mulhouse", - short: "Mulhouse", - long: "Mulhouse Alsace Agglomération", - idName: "mulhouse", - main: "mulhouse", + country: 'France', + city: 'Mulhouse', + short: 'Mulhouse', + long: 'Mulhouse Alsace Agglomération', + idSourceName: 'mulhouse', + main: 'mulhouse', center: null, latitude: null, longitude: null, - info: "https://www.data.gouv.fr/fr/datasets/caracteristiques-des-arbres-dalignements-geres-par-la-ville-de-mulhouse/", + info: 'https://www.data.gouv.fr/fr/datasets/caracteristiques-des-arbres-dalignements-geres-par-la-ville-de-mulhouse/', broken: true, download: - "https://www.data.gouv.fr/fr/datasets/r/3c47ef6b-10ea-4723-81b9-a3c0b99e9550", - format: "zip", + 'https://www.data.gouv.fr/fr/datasets/r/3c47ef6b-10ea-4723-81b9-a3c0b99e9550', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "libelle_es", - planted: "date_plant", - common: "com_nom", - idReference: "obj_ident", + scientific: 'libelle_es', + planted: 'date_plant', + common: 'com_nom', + idReference: 'obj_ident', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Divonne-les-Bains", - short: "Divonne-les-Bains", - long: "Divonne-les-Bains", - idName: "divonne_les_bains_fr", - main: "divonne_les_bains_fr", + country: 'France', + city: 'Divonne-les-Bains', + short: 'Divonne-les-Bains', + long: 'Divonne-les-Bains', + idSourceName: 'divonne_les_bains_fr', + main: 'divonne_les_bains_fr', center: null, latitude: null, longitude: null, - info: "https://www.datara.gouv.fr/geonetwork/srv/fre/catalog.search#/metadata/b18070b7-4349-4fd5-8e56-1dc48c3eb03a", + info: 'https://www.datara.gouv.fr/geonetwork/srv/fre/catalog.search#/metadata/b18070b7-4349-4fd5-8e56-1dc48c3eb03a', broken: false, download: - "https://telecarto.datara.gouv.fr/DOWNLOAD/Telechargement_1584570708_1630.zip", + 'https://telecarto.datara.gouv.fr/DOWNLOAD/Telechargement_1584570708_1630.zip', format: null, filename: null, gdalOptions: null, @@ -676,28 +676,28 @@ export default [ contact: null, crosswalk: { genus: '(x) => x.genre.replace("spp.", "")', - species: "espece", - height: "classe_hau", - dbh: "classe_cir", + species: 'espece', + height: 'classe_hau', + dbh: 'classe_cir', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Bretagne", - short: "Bretagne", - long: "La Région Bretagne", - idName: "bretagne_fr", - main: "bretagne_fr", + country: 'France', + city: 'Bretagne', + short: 'Bretagne', + long: 'La Région Bretagne', + idSourceName: 'bretagne_fr', + main: 'bretagne_fr', center: null, latitude: null, longitude: null, - info: "https://data.bretagne.bzh/explore/dataset/patrimoine-arbore-ponctuel-des-voies-navigables-appartenant-a-la-region-bretagne/export/", + info: 'https://data.bretagne.bzh/explore/dataset/patrimoine-arbore-ponctuel-des-voies-navigables-appartenant-a-la-region-bretagne/export/', broken: false, download: - "https://data.bretagne.bzh/explore/dataset/patrimoine-arbore-ponctuel-des-voies-navigables-appartenant-a-la-region-bretagne/download/?format=shp&timezone=Australia/Sydney&lang=fr", + 'https://data.bretagne.bzh/explore/dataset/patrimoine-arbore-ponctuel-des-voies-navigables-appartenant-a-la-region-bretagne/download/?format=shp&timezone=Australia/Sydney&lang=fr', format: null, filename: null, gdalOptions: null, @@ -705,57 +705,57 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "gml_id", - common: "essence", - height: "hauteur", - dbh: "diametre", - health: "etat_genera", - note: "remarque", + idReference: 'gml_id', + common: 'essence', + height: 'hauteur', + dbh: 'diametre', + health: 'etat_genera', + note: 'remarque', }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Guingamp", - short: "Guingamp", - long: "Ville de Guingamp", - idName: "guingamp_fr", - main: "guingamp_fr", + country: 'France', + city: 'Guingamp', + short: 'Guingamp', + long: 'Ville de Guingamp', + idSourceName: 'guingamp_fr', + main: 'guingamp_fr', center: null, latitude: null, longitude: null, - info: "https://datarmor.cotesdarmor.fr/data-presentation-ux/#/cg22/datasets/Arbres_Guingamp/views/grid?main-bg-color=@046D8B&main-font-color=@fff", + info: 'https://datarmor.cotesdarmor.fr/data-presentation-ux/#/cg22/datasets/Arbres_Guingamp/views/grid?main-bg-color=@046D8B&main-font-color=@fff', broken: true, - broken_reason: "No common field", + broken_reason: 'No common field', download: - "https://datarmor.cotesdarmor.fr:443/dataserver/cg22/data/Arbres_Guingamp?&$format=csv", - format: "csv", + 'https://datarmor.cotesdarmor.fr:443/dataserver/cg22/data/Arbres_Guingamp?&$format=csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { genus: "Genre", species: "Espce", variety: "Varit" }, + crosswalk: { genus: 'Genre', species: 'Espce', variety: 'Varit' }, }, { isoAlpha2: 'FR', isoAlpha3: 'FRA', numericCountryCode: '250', - country: "France", - city: "Grand Paris Sud", - short: "Grand Paris Sud", - long: "Grand Paris Sud", - idName: "paris_sud_fr", - main: "paris_sud_fr", + country: 'France', + city: 'Grand Paris Sud', + short: 'Grand Paris Sud', + long: 'Grand Paris Sud', + idSourceName: 'paris_sud_fr', + main: 'paris_sud_fr', center: null, latitude: null, longitude: null, - info: "https://data.grandparissud.fr/explore/dataset/patrimoine-arbore/export/", + info: 'https://data.grandparissud.fr/explore/dataset/patrimoine-arbore/export/', broken: false, download: - "https://data.grandparissud.fr/explore/dataset/patrimoine-arbore/download/?format=shp&timezone=Australia/Sydney&lang=fr", + 'https://data.grandparissud.fr/explore/dataset/patrimoine-arbore/download/?format=shp&timezone=Australia/Sydney&lang=fr', format: null, filename: null, gdalOptions: null, @@ -763,14 +763,14 @@ export default [ email: null, contact: null, crosswalk: { - location: "categorie", - owner: "gestionnai", - common: "(x) => `${x.ess_fcais} ${x.espe_fcais}`", - scientific: "ess_latin", - age: "classe_age", - health: "vigeur_cr", - updated: "anne_expe", - idReference: "identifian", + location: 'categorie', + owner: 'gestionnai', + common: '(x) => `${x.ess_fcais} ${x.espe_fcais}`', + scientific: 'ess_latin', + age: 'classe_age', + health: 'vigeur_cr', + updated: 'anne_expe', + idReference: 'identifian', }, }, ]; diff --git a/sources/germany.js b/sources/germany.js index f186af1..8b9f33b 100644 --- a/sources/germany.js +++ b/sources/germany.js @@ -3,215 +3,215 @@ const country = [ isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - } -] + country: 'Germany', + }, +]; export default [ { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Halle", - short: "Halle", - long: "Halle (Saale)", - idName: "halle", - main: "halle", + country: 'Germany', + city: 'Halle', + short: 'Halle', + long: 'Halle (Saale)', + idSourceName: 'halle', + main: 'halle', center: null, latitude: null, longitude: null, - info: "https://www.halle.de/de/Verwaltung/Online-Angebote/Offene-Verwaltungsdaten/Mit-Kartenbezug/index.aspx?ID=f2087a53-2c10-f7c5-4dba-9ad5112a90cb", + info: 'https://www.halle.de/de/Verwaltung/Online-Angebote/Offene-Verwaltungsdaten/Mit-Kartenbezug/index.aspx?ID=f2087a53-2c10-f7c5-4dba-9ad5112a90cb', broken: false, download: - "https://www.halle.de/pushOD.aspx?FileName=f2087a53-2c10-f7c5-4dba-9ad5112a90cb_shp.zip", - format: "zip", + 'https://www.halle.de/pushOD.aspx?FileName=f2087a53-2c10-f7c5-4dba-9ad5112a90cb_shp.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - planted: "pflanzjahr", - crown: "krone_m", - height: "hoehe_m", - idReference: "baum_nr", - scientific: "art_botan", - common: "art_deut", + planted: 'pflanzjahr', + crown: 'krone_m', + height: 'hoehe_m', + idReference: 'baum_nr', + scientific: 'art_botan', + common: 'art_deut', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Netherlands", - city: "Utrecht", - short: "Utrecht", - long: "Utrecht", - idName: "utrecht", - main: "utrecht", + country: 'Netherlands', + city: 'Utrecht', + short: 'Utrecht', + long: 'Utrecht', + idSourceName: 'utrecht', + main: 'utrecht', center: null, latitude: null, longitude: null, - info: "https://ckan.dataplatform.nl/dataset/bomenkaart/resource/2d6893b4-d56d-4865-b6cc-0bda42e547f5", + info: 'https://ckan.dataplatform.nl/dataset/bomenkaart/resource/2d6893b4-d56d-4865-b6cc-0bda42e547f5', broken: false, download: - "https://ckan.dataplatform.nl/datastore/dump/2d6893b4-d56d-4865-b6cc-0bda42e547f5?bom=True", - format: "csv", + 'https://ckan.dataplatform.nl/datastore/dump/2d6893b4-d56d-4865-b6cc-0bda42e547f5?bom=True', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Naam_Wet", - common: "Naam_NL", - planted: "Plantjaar", - idReference: "Boomnr", - owner: "Eigenaar", + scientific: 'Naam_Wet', + common: 'Naam_NL', + planted: 'Plantjaar', + idReference: 'Boomnr', + owner: 'Eigenaar', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Leipzig", - short: "Leipzig", - long: "Leipzig", - idName: "leipzig", - main: "leipzig", + country: 'Germany', + city: 'Leipzig', + short: 'Leipzig', + long: 'Leipzig', + idSourceName: 'leipzig', + main: 'leipzig', center: null, latitude: null, longitude: null, - info: "https://hub.arcgis.com/datasets/esri-de-content::stra%C3%9Fenbaumkataster-leipzig", + info: 'https://hub.arcgis.com/datasets/esri-de-content::stra%C3%9Fenbaumkataster-leipzig', broken: false, download: - "https://opendata.arcgis.com/datasets/918dfaa87b754c4384ddcf869cfd6dc6_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/918dfaa87b754c4384ddcf869cfd6dc6_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Baumart_wi", - common: "Baumart_de", - planted: "Pflanzjahr", - idReference: "STANDORTNR", + scientific: 'Baumart_wi', + common: 'Baumart_de', + planted: 'Pflanzjahr', + idReference: 'STANDORTNR', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Bonn", - short: "Bonn", - long: "Bonn", - idName: "bonn", - main: "bonn", + country: 'Germany', + city: 'Bonn', + short: 'Bonn', + long: 'Bonn', + idSourceName: 'bonn', + main: 'bonn', center: null, latitude: null, longitude: null, - info: "http://opendata.gis.ms.gov/datasets/esri-de-content::baumkataster-bonn", + info: 'http://opendata.gis.ms.gov/datasets/esri-de-content::baumkataster-bonn', broken: false, download: - "https://opendata.arcgis.com/datasets/f8f130c1dd4e4ea9b5fe1f2385673cab_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/f8f130c1dd4e4ea9b5fe1f2385673cab_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "baum_id", - scientific: "lateinisch", - common: "deutscher_", + idReference: 'baum_id', + scientific: 'lateinisch', + common: 'deutscher_', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Köln", - short: "Köln", - long: "Stadt Köln", - idName: "koeln", - main: "koeln", + country: 'Germany', + city: 'Köln', + short: 'Köln', + long: 'Stadt Köln', + idSourceName: 'koeln', + main: 'koeln', center: null, latitude: null, longitude: null, - info: "https://offenedaten-koeln.de/dataset/baumkataster-koeln", + info: 'https://offenedaten-koeln.de/dataset/baumkataster-koeln', broken: false, download: - "https://offenedaten-koeln.de/sites/default/files/Bestand_Einzelbaeume_Koeln_0.csv", - format: "csv", + 'https://offenedaten-koeln.de/sites/default/files/Bestand_Einzelbaeume_Koeln_0.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "Baum-Nr.", - crown: "KRONE", - height: "HöHE", - age: "AlterSchätzung", - genus: "Gattung", - species: "Art", - common: "DeutscherN", + idReference: 'Baum-Nr.', + crown: 'KRONE', + height: 'HöHE', + age: 'AlterSchätzung', + genus: 'Gattung', + species: 'Art', + common: 'DeutscherN', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Berlin", - short: "Berlin", - long: "Berlin", - idName: "berlin", - main: "berlin", + country: 'Germany', + city: 'Berlin', + short: 'Berlin', + long: 'Berlin', + idSourceName: 'berlin', + main: 'berlin', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://opendata.arcgis.com/datasets/05c3f9d7dea6422b86e30967811bddd7_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/05c3f9d7dea6422b86e30967811bddd7_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Art_Bot", - common: "Art_Dtsch", - planted: "Pflanzjahr", - height: "BaumHoehe", - location: "Kategorie", + scientific: 'Art_Bot', + common: 'Art_Dtsch', + planted: 'Pflanzjahr', + height: 'BaumHoehe', + location: 'Kategorie', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Frankfurt", - short: "Frankfurt", - long: "Frankfurt am Main", - idName: "frankfurt", - main: "frankfurt", + country: 'Germany', + city: 'Frankfurt', + short: 'Frankfurt', + long: 'Frankfurt am Main', + idSourceName: 'frankfurt', + main: 'frankfurt', center: null, latitude: null, longitude: null, - info: "https://hub.arcgis.com/datasets/esri-de-content::baumkataster-frankfurt-am-main", + info: 'https://hub.arcgis.com/datasets/esri-de-content::baumkataster-frankfurt-am-main', broken: false, download: - "https://opendata.arcgis.com/datasets/8c50110f190e43599baf50701aaff13a_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/8c50110f190e43599baf50701aaff13a_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, @@ -220,211 +220,211 @@ export default [ crosswalk: { scientific: '(x) => String(x.Gattung_Ar).split(", ")[0]', common: '(x) => String(x.Gattung_Ar).split(", ")[1]', - idReference: "Baumnummer", - planted: "Pflanzjahr", - crown: "Kronendurc", + idReference: 'Baumnummer', + planted: 'Pflanzjahr', + crown: 'Kronendurc', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Hamburg Hafen", - short: "Hamburg Hafen", - long: "Hamburg Hafen", - idName: "hamburg_hafen", - main: "hamburg_hafen", + country: 'Germany', + city: 'Hamburg Hafen', + short: 'Hamburg Hafen', + long: 'Hamburg Hafen', + idSourceName: 'hamburg_hafen', + main: 'hamburg_hafen', center: null, latitude: null, longitude: null, - info: "https://hub.arcgis.com/datasets/esri-de-content::stra%C3%9Fenbaumkataster-hamburg-hafen", + info: 'https://hub.arcgis.com/datasets/esri-de-content::stra%C3%9Fenbaumkataster-hamburg-hafen', broken: false, download: - "https://opendata.arcgis.com/datasets/35950460a3744fa4b088570b2df55718_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/35950460a3744fa4b088570b2df55718_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "art_latein", - common: "art_deutsc", - note: "sorte", - planted: "pflanzjahr", - crown: "kronendurc", - dbh: "stammumfan", - owner: "zustaendig", + scientific: 'art_latein', + common: 'art_deutsc', + note: 'sorte', + planted: 'pflanzjahr', + crown: 'kronendurc', + dbh: 'stammumfan', + owner: 'zustaendig', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Rostock", - short: "Rostock", - long: "Hanse- und Universitätsstadt Rostock", - idName: "rostock", - main: "rostock", + country: 'Germany', + city: 'Rostock', + short: 'Rostock', + long: 'Hanse- und Universitätsstadt Rostock', + idSourceName: 'rostock', + main: 'rostock', center: null, latitude: null, longitude: null, - info: "https://www.opendata-hro.de/dataset/baeume", + info: 'https://www.opendata-hro.de/dataset/baeume', broken: false, - download: "https://geo.sv.rostock.de/download/opendata/baeume/baeume.csv", - format: "csv", + download: 'https://geo.sv.rostock.de/download/opendata/baeume/baeume.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "gattung_botanisch", - common: "gattung_deutsch", - height: "hoehe", - crown: "kronendurchmesser", - dbh: "stammdurchmesser", - location: "allebaum", + scientific: 'gattung_botanisch', + common: 'gattung_deutsch', + height: 'hoehe', + crown: 'kronendurchmesser', + dbh: 'stammdurchmesser', + location: 'allebaum', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Chemnitz", - short: "Chemnitz", - long: "Chemnitz", - idName: "chemnitz", - main: "chemnitz", + country: 'Germany', + city: 'Chemnitz', + short: 'Chemnitz', + long: 'Chemnitz', + idSourceName: 'chemnitz', + main: 'chemnitz', center: null, latitude: null, longitude: null, - info: "http://portal-chemnitz.opendata.arcgis.com/datasets/baeume?geometry=12.910%2C50.819%2C12.914%2C50.822", + info: 'http://portal-chemnitz.opendata.arcgis.com/datasets/baeume?geometry=12.910%2C50.819%2C12.914%2C50.822', broken: true, download: - "https://opendata.arcgis.com/datasets/70330324e2364b209f7511ca20581f83_0.zip?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D", - format: "zip", + 'https://opendata.arcgis.com/datasets/70330324e2364b209f7511ca20581f83_0.zip?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "BaumNummer", + idReference: 'BaumNummer', scientific: '(x) => String(x.BaumArt).split(", ")[0]', common: '(x) => String(x.BaumArt).split(", ")[1]', - planted: "PflanzDatu", + planted: 'PflanzDatu', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Ulm", - short: "Ulm", - long: "Ulm", - idName: "ulm", - main: "ulm", + country: 'Germany', + city: 'Ulm', + short: 'Ulm', + long: 'Ulm', + idSourceName: 'ulm', + main: 'ulm', center: null, latitude: null, longitude: null, - info: "http://www.daten.ulm.de/datenkatalog/metadaten/baumbestand-stadt-ulm-testdatensatz", + info: 'http://www.daten.ulm.de/datenkatalog/metadaten/baumbestand-stadt-ulm-testdatensatz', broken: true, - download: "http://daten.ulm.de/sites/default/files/20180921_Baeume_1.xlsx", - format: "xlsx", - filename: "ulm.vrt", - gdalOptions: "-skipfailures", + download: 'http://daten.ulm.de/sites/default/files/20180921_Baeume_1.xlsx', + format: 'xlsx', + filename: 'ulm.vrt', + gdalOptions: '-skipfailures', license: null, email: null, contact: null, crosswalk: { - scientific: "Baumart_botanisch", - common: "Baumart", - height: "Baumhöhe_(aktuell)", - crown: "Kronendurchm_(aktuell)", - dbh: "Stammdurchm_(aktuell)", - health: "Vitalitaetsstatus_(aktuell)", - planted: "Pflanzjahr_geschaetzt", - updated: "Standortermittlung_am", + scientific: 'Baumart_botanisch', + common: 'Baumart', + height: 'Baumhöhe_(aktuell)', + crown: 'Kronendurchm_(aktuell)', + dbh: 'Stammdurchm_(aktuell)', + health: 'Vitalitaetsstatus_(aktuell)', + planted: 'Pflanzjahr_geschaetzt', + updated: 'Standortermittlung_am', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Hamburg", - short: "Hamburg", - long: "Hamburg", - idName: "hamburg", - main: "hamburg", + country: 'Germany', + city: 'Hamburg', + short: 'Hamburg', + long: 'Hamburg', + idSourceName: 'hamburg', + main: 'hamburg', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "http://daten-hamburg.de/umwelt_klima/strassenbaumkataster/Strassenbaumkataster_HH_2019-06-19.zip", - format: "zip", - filename: "Strassenbaumkataster_HH_2019-06-19.gml", + 'http://daten-hamburg.de/umwelt_klima/strassenbaumkataster/Strassenbaumkataster_HH_2019-06-19.zip', + format: 'zip', + filename: 'Strassenbaumkataster_HH_2019-06-19.gml', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "baumid", - scientific: "art_latein", - common: "art_deutsch", - planted: "pflanzjahr", - dbh: "stammumfang", + idReference: 'baumid', + scientific: 'art_latein', + common: 'art_deutsch', + planted: 'pflanzjahr', + dbh: 'stammumfang', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Karlsruhe", - short: "Karlsruhe", - long: "Karlsruhe", - idName: "karlsruhe_de", - main: "karlsruhe_de", + country: 'Germany', + city: 'Karlsruhe', + short: 'Karlsruhe', + long: 'Karlsruhe', + idSourceName: 'karlsruhe_de', + main: 'karlsruhe_de', center: null, latitude: null, longitude: null, - info: "https://transparenz.karlsruhe.de/dataset/fachplane-baumkataster/resource/9cd1989f-9720-4621-b171-3c4e56352598", + info: 'https://transparenz.karlsruhe.de/dataset/fachplane-baumkataster/resource/9cd1989f-9720-4621-b171-3c4e56352598', broken: false, download: - "https://geoportal.karlsruhe.de/server/rest/services/Fachplaene/Baumkataster/MapServer/1/query?where=ARTDEUT+IS+NOT+NULL&outFields=ARTDEUT%2CARTLAT&returnGeometry=true&f=geojson", + 'https://geoportal.karlsruhe.de/server/rest/services/Fachplaene/Baumkataster/MapServer/1/query?where=ARTDEUT+IS+NOT+NULL&outFields=ARTDEUT%2CARTLAT&returnGeometry=true&f=geojson', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { common: "ARTDEUT", scientific: "ARTLAT" }, + crosswalk: { common: 'ARTDEUT', scientific: 'ARTLAT' }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Gelsenkirchen", - short: "Gelsenkirchen", - long: "Gelsenkirchen", - idName: "gelsenkirchen_de", - main: "gelsenkirchen_de", + country: 'Germany', + city: 'Gelsenkirchen', + short: 'Gelsenkirchen', + long: 'Gelsenkirchen', + idSourceName: 'gelsenkirchen_de', + main: 'gelsenkirchen_de', center: null, latitude: null, longitude: null, - info: "https://opendata.gelsenkirchen.de/dataset/baumkataster-gelsenkirchen", + info: 'https://opendata.gelsenkirchen.de/dataset/baumkataster-gelsenkirchen', broken: false, download: - "https://opendata.gelsenkirchen.de/sites/default/files/baumkataster_ge.csv", + 'https://opendata.gelsenkirchen.de/sites/default/files/baumkataster_ge.csv', format: null, filename: null, gdalOptions: null, @@ -432,61 +432,61 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "BAUMART", - planted: "PFLANZJAHR", - crown: "KRONENDURCHMESSER", - height: "HOEHE", - idReference: "BAUMID", + scientific: 'BAUMART', + planted: 'PFLANZJAHR', + crown: 'KRONENDURCHMESSER', + height: 'HOEHE', + idReference: 'BAUMID', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Troisdorf", - short: "Troisdorf", - long: "Stadt Troisdorf", - idName: "troisdorf_de", - main: "troisdorf_de", + country: 'Germany', + city: 'Troisdorf', + short: 'Troisdorf', + long: 'Stadt Troisdorf', + idSourceName: 'troisdorf_de', + main: 'troisdorf_de', center: null, latitude: null, longitude: null, - info: "http://www.stadtplan.troisdorf.de/opengeodata/opendata/open_data_baumkataster.html", + info: 'http://www.stadtplan.troisdorf.de/opengeodata/opendata/open_data_baumkataster.html', broken: true, download: - "http://www.stadtplan.troisdorf.de/opengeodata/opendata/data/Troisdorf_Baumkataster_180926.zip", - format: "csv", + 'http://www.stadtplan.troisdorf.de/opengeodata/opendata/data/Troisdorf_Baumkataster_180926.zip', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - height: "Baumhoehe", + height: 'Baumhoehe', scientific: '(x) => x.Baumart.split(", ")[0]', common: '(x) => x.Baumart.split(", ")[1]', - crown: "Kronendurchmesser", - dbh: "Stammumfang", + crown: 'Kronendurchmesser', + dbh: 'Stammumfang', }, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', numericCountryCode: '276', - country: "Germany", - city: "Jena", - short: "Jena", - long: "Jena", - idName: "jena_de", - main: "jena_de", + country: 'Germany', + city: 'Jena', + short: 'Jena', + long: 'Jena', + idSourceName: 'jena_de', + main: 'jena_de', center: null, latitude: null, longitude: null, - info: "https://opendata.jena.de/dataset/baumkataster", + info: 'https://opendata.jena.de/dataset/baumkataster', broken: false, download: - "https://opendata.jena.de/dataset/acd67e0c-b597-48c7-b251-1b565c49de90/resource/3ff727bb-8db4-4b47-9c53-7084d15f73d6/download/baumkataster.csv", + 'https://opendata.jena.de/dataset/acd67e0c-b597-48c7-b251-1b565c49de90/resource/3ff727bb-8db4-4b47-9c53-7084d15f73d6/download/baumkataster.csv', format: null, filename: null, gdalOptions: null, @@ -494,11 +494,11 @@ export default [ email: null, contact: null, crosswalk: { - height: "baumhoehe", - idReference: "baumnummer", - scientific: "ga_lang", - dbh: "st_umfang", - health: "vitalitaet", + height: 'baumhoehe', + idReference: 'baumnummer', + scientific: 'ga_lang', + dbh: 'st_umfang', + health: 'vitalitaet', }, }, ]; diff --git a/sources/hong-kong-sar.js b/sources/hong-kong-sar.js index 88aa601..5fe679c 100644 --- a/sources/hong-kong-sar.js +++ b/sources/hong-kong-sar.js @@ -3,41 +3,40 @@ const country = [ isoAlpha2: 'HK', isoAlpha3: 'HKG', numericCountryCode: '344', - country: "Hong Kong", - } -] + country: 'Hong Kong', + }, +]; export default [ { isoAlpha2: 'HK', isoAlpha3: 'HKG', numericCountryCode: '344', - country: "Hong Kong", - city: "Hong Kong", - short: "Hong Kong", - long: "Hong Kong", - idName: "hong_kong", - main: "hong_kong", + country: 'Hong Kong', + city: 'Hong Kong', + short: 'Hong Kong', + long: 'Hong Kong', + idSourceName: 'hong_kong', + main: 'hong_kong', center: null, latitude: null, longitude: null, - info: "https://hub.arcgis.com/datasets/esrihk::old-and-valuable-trees-and-stonewall-trees-in-hong-kong/about", + info: 'https://hub.arcgis.com/datasets/esrihk::old-and-valuable-trees-and-stonewall-trees-in-hong-kong/about', broken: false, download: - "https://opendata.arcgis.com/api/v3/datasets/1eb1ece1b6264d5abf85feb067e33508_0/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1", - format: "geojson", - filename: "Old_and_Valuable_Trees_and_Stonewall_Trees_in_Hong_Kong.geojson", + 'https://opendata.arcgis.com/api/v3/datasets/1eb1ece1b6264d5abf85feb067e33508_0/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1', + format: 'geojson', + filename: 'Old_and_Valuable_Trees_and_Stonewall_Trees_in_Hong_Kong.geojson', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - species: "Species", - note: "Mitigation Measure", - health: "Condition", - location: "Location", - updated: "Last Inspection Date", + species: 'Species', + note: 'Mitigation Measure', + health: 'Condition', + location: 'Location', + updated: 'Last Inspection Date', }, }, ]; - diff --git a/sources/ireland.js b/sources/ireland.js index 09b59b9..54fd803 100644 --- a/sources/ireland.js +++ b/sources/ireland.js @@ -3,42 +3,43 @@ const country = [ isoAlpha2: 'IE', isoAlpha3: 'IRL', numericCountryCode: '372', - country: "Ireland", - } -] + country: 'Ireland', + }, +]; export default [ { isoAlpha2: 'IE', isoAlpha3: 'IRL', numericCountryCode: '372', - country: "Ireland", - city: "Fingal", - short: "Fingal", - long: "Fingal County", - idName: "fingal", - main: "fingal", + country: 'Ireland', + city: 'Fingal', + short: 'Fingal', + long: 'Fingal County', + idSourceName: 'fingal', + main: 'fingal', center: null, latitude: null, longitude: null, - info: "https://data.fingal.ie/datasets/FingalCoCo::trees-fcc-1/explore", + info: 'https://data.fingal.ie/datasets/FingalCoCo::trees-fcc-1/explore', broken: false, - download: "https://opendata.arcgis.com/api/v3/datasets/1e5f9db62e53443d946c15a1a06fd98b_0/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1", - format: "geojson", + download: + 'https://opendata.arcgis.com/api/v3/datasets/1e5f9db62e53443d946c15a1a06fd98b_0/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "(x) => Math.round(x.TREE_ID)", - scientific: "Species_Desc", - common: "Common_Name", - age: "Age_Desc", - height: "Height", - spread: "Spread", + idReference: '(x) => Math.round(x.TREE_ID)', + scientific: 'Species_Desc', + common: 'Common_Name', + age: 'Age_Desc', + height: 'Height', + spread: 'Spread', dbh: '(x) => (x.Actual_Trunk || "").replace("cm", "")', - health: "Condition", + health: 'Condition', }, }, ]; diff --git a/sources/italy.js b/sources/italy.js index 6db8b45..db4cc12 100644 --- a/sources/italy.js +++ b/sources/italy.js @@ -3,59 +3,60 @@ const country = [ isoAlpha2: 'IT', isoAlpha3: 'ITA', numericCountryCode: '380', - country: "Italy", - } -] + country: 'Italy', + }, +]; export default [ { isoAlpha2: 'IT', isoAlpha3: 'ITA', numericCountryCode: '380', - country: "Italy", - city: "Bologna", - short: "Bologna", - long: "Comune di Bologna", - id: "bologna_it", - idName: "bologna_it", - main: "bologna_it", + country: 'Italy', + city: 'Bologna', + short: 'Bologna', + long: 'Comune di Bologna', + id: 'bologna_it', + idSourceName: 'bologna_it', + main: 'bologna_it', center: null, latitude: null, longitude: null, - info: "https://opendata.comune.bologna.it/explore/dataset/alberi-manutenzioni/information/?disjunctive.classe&disjunctive.cl_h&disjunctive.dimora&disjunctive.d_edif", + info: 'https://opendata.comune.bologna.it/explore/dataset/alberi-manutenzioni/information/?disjunctive.classe&disjunctive.cl_h&disjunctive.dimora&disjunctive.d_edif', broken: true, - broken_reason: "Data has Specie arborea field but no common field", - download: "https://opendata.comune.bologna.it/explore/dataset/alberi-manutenzioni/download/?format=geojson&timezone=Europe/Rome&lang=it", - format: "geojson", + broken_reason: 'Data has Specie arborea field but no common field', + download: + 'https://opendata.comune.bologna.it/explore/dataset/alberi-manutenzioni/download/?format=geojson&timezone=Europe/Rome&lang=it', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Specie arborea", - height: "Classe di altezza", - updated: "Data ultimo aggiornamento", - planted: "Data Impianto", + scientific: 'Specie arborea', + height: 'Classe di altezza', + updated: 'Data ultimo aggiornamento', + planted: 'Data Impianto', }, }, { isoAlpha2: 'IT', isoAlpha3: 'ITA', numericCountryCode: '380', - country: "Italy", - city: "Villa_Manin", - short: "Villa_Manin", - long: "Villa_Manin", - idName: "villa_manin_it", - main: "villa_manin_it", + country: 'Italy', + city: 'Villa_Manin', + short: 'Villa_Manin', + long: 'Villa_Manin', + idSourceName: 'villa_manin_it', + main: 'villa_manin_it', center: null, latitude: null, longitude: null, - info: "https://www.dati.friuliveneziagiulia.it/dataset/Alberi-di-Villa-Manin/uqpq-dr8x", + info: 'https://www.dati.friuliveneziagiulia.it/dataset/Alberi-di-Villa-Manin/uqpq-dr8x', broken: false, download: - "https://www.dati.friuliveneziagiulia.it/api/views/uqpq-dr8x/rows.csv?accessType=DOWNLOAD", + 'https://www.dati.friuliveneziagiulia.it/api/views/uqpq-dr8x/rows.csv?accessType=DOWNLOAD', format: null, filename: null, gdalOptions: null, @@ -63,10 +64,10 @@ export default [ email: null, contact: null, crosswalk: { - location: "dove", - scientific: "specie", - family: "familia", - updated: "data rilievo", + location: 'dove', + scientific: 'specie', + family: 'familia', + updated: 'data rilievo', }, }, ]; diff --git a/sources/luxembourg.js b/sources/luxembourg.js index d924fed..97803c7 100644 --- a/sources/luxembourg.js +++ b/sources/luxembourg.js @@ -3,37 +3,37 @@ const country = [ isoAlpha2: 'LU', isoAlpha3: 'LUX', numericCountryCode: '442', - country: "Luxembourg", - } -] + country: 'Luxembourg', + }, +]; export default [ { isoAlpha2: 'LU', isoAlpha3: 'LUX', numericCountryCode: '442', - country: "Luxembourg", - city: "Luxembourg", - short: "Luxembourg", - long: "Grand-Duchy of Luxembourg", - idName: "luxembourg", - main: "luxembourg", + country: 'Luxembourg', + city: 'Luxembourg', + short: 'Luxembourg', + long: 'Grand-Duchy of Luxembourg', + idSourceName: 'luxembourg', + main: 'luxembourg', center: null, latitude: null, longitude: null, - info: "https://data.public.lu/en/datasets/inspire-annex-i-theme-protected-sites-remarkable-trees/#_", + info: 'https://data.public.lu/en/datasets/inspire-annex-i-theme-protected-sites-remarkable-trees/#_', broken: true, - broken_reason: "Requires outreach to get a compatible file format", + broken_reason: 'Requires outreach to get a compatible file format', download: - "https://download.data.public.lu/resources/inspire-annex-i-theme-protected-sites-remarkable-trees/20220405-122622/ps.protectedsitesnatureconservation-trees.gml", - format: "gml", + 'https://download.data.public.lu/resources/inspire-annex-i-theme-protected-sites-remarkable-trees/20220405-122622/ps.protectedsitesnatureconservation-trees.gml', + format: 'gml', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "localId", + idReference: 'localId', scientific: '(x) => String(x.text).split(" - ")[0]', common: '(x) => String(x.text).split(" - ")[1]', }, diff --git a/sources/mexico.js b/sources/mexico.js index 2b71953..b9d0f42 100644 --- a/sources/mexico.js +++ b/sources/mexico.js @@ -3,28 +3,28 @@ const country = [ isoAlpha2: 'MX', isoAlpha3: 'MEX', numericCountryCode: '484', - country: "Mexico", - } -] + country: 'Mexico', + }, +]; export default [ { isoAlpha2: 'MX', isoAlpha3: 'MEX', numericCountryCode: '484', - country: "Mexico", - city: "Monterrey", - short: "Monterrey", - long: "Zona Metropolitana de Monterrey", - idName: "monterrey_mx", - main: "monterrey_mx", + country: 'Mexico', + city: 'Monterrey', + short: 'Monterrey', + long: 'Zona Metropolitana de Monterrey', + idSourceName: 'monterrey_mx', + main: 'monterrey_mx', center: null, latitude: null, longitude: null, - info: "http://datamx.io/dataset/arboles-registrados-en-la-zona-metropolitana-de-monterrey", + info: 'http://datamx.io/dataset/arboles-registrados-en-la-zona-metropolitana-de-monterrey', broken: false, download: - "http://datamx.io/dataset/9ad2f30b-4be9-4abe-beac-aec73ecc9cba/resource/6f1f1fe9-40c7-4527-8e2e-78b0f0c86a40/download/bumfiltercsv.csv", + 'http://datamx.io/dataset/9ad2f30b-4be9-4abe-beac-aec73ecc9cba/resource/6f1f1fe9-40c7-4527-8e2e-78b0f0c86a40/download/bumfiltercsv.csv', format: null, filename: null, gdalOptions: null, @@ -32,11 +32,11 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "Arbol_id", + idReference: 'Arbol_id', planted: '(x) =>\n x.Fecha_plantado !== "0000-00-00" ? x.Fecha_plantado : null', - common: "Especie", - updated: "Fecha_registro", + common: 'Especie', + updated: 'Fecha_registro', }, }, ]; diff --git a/sources/netherlands.js b/sources/netherlands.js index 6f307a7..f076fe4 100644 --- a/sources/netherlands.js +++ b/sources/netherlands.js @@ -3,319 +3,319 @@ const country = [ isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - } -] + country: 'Netherlands', + }, +]; export default [ { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Amsterdam", - short: "Amsterdam", - long: "Gemeente Amsterdam", - idName: "amsterdam1", - main: "amsterdam1", + country: 'Netherlands', + city: 'Amsterdam', + short: 'Amsterdam', + long: 'Gemeente Amsterdam', + idSourceName: 'amsterdam1', + main: 'amsterdam1', center: null, latitude: null, longitude: null, - info: "https://maps.amsterdam.nl/open_geodata/?k=254", + info: 'https://maps.amsterdam.nl/open_geodata/?k=254', broken: false, download: - "https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen1", - format: "csv", + 'https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen1', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "Soortnaam_NL", - scientific: "Soortnaam_WTS", - location: "Boomtype", - height: "Boomhoogte", - planted: "Plantjaar", - owner: "Eigenaar", + common: 'Soortnaam_NL', + scientific: 'Soortnaam_WTS', + location: 'Boomtype', + height: 'Boomhoogte', + planted: 'Plantjaar', + owner: 'Eigenaar', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Amsterdam", - short: "Amsterdam", - long: "Gemeente Amsterdam", - idName: "amsterdam2", - main: "amsterdam1", + country: 'Netherlands', + city: 'Amsterdam', + short: 'Amsterdam', + long: 'Gemeente Amsterdam', + idSourceName: 'amsterdam2', + main: 'amsterdam1', center: null, latitude: null, longitude: null, - info: "https://maps.amsterdam.nl/open_geodata/?k=255", + info: 'https://maps.amsterdam.nl/open_geodata/?k=255', broken: false, download: - "https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen2", - format: "csv", + 'https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen2', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "Soortnaam_NL", - scientific: "Soortnaam_WTS", - location: "Boomtype", - height: "Boomhoogte", - planted: "Plantjaar", - owner: "Eigenaar", + common: 'Soortnaam_NL', + scientific: 'Soortnaam_WTS', + location: 'Boomtype', + height: 'Boomhoogte', + planted: 'Plantjaar', + owner: 'Eigenaar', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Amsterdam", - short: "Amsterdam", - long: "Gemeente Amsterdam", - idName: "amsterdam3", - main: "amsterdam1", + country: 'Netherlands', + city: 'Amsterdam', + short: 'Amsterdam', + long: 'Gemeente Amsterdam', + idSourceName: 'amsterdam3', + main: 'amsterdam1', center: null, latitude: null, longitude: null, - info: "https://maps.amsterdam.nl/open_geodata/?k=256", + info: 'https://maps.amsterdam.nl/open_geodata/?k=256', broken: false, download: - "https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen3", - format: "csv", + 'https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen3', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "Soortnaam_NL", - scientific: "Soortnaam_WTS", - location: "Boomtype", - height: "Boomhoogte", - planted: "Plantjaar", - owner: "Eigenaar", + common: 'Soortnaam_NL', + scientific: 'Soortnaam_WTS', + location: 'Boomtype', + height: 'Boomhoogte', + planted: 'Plantjaar', + owner: 'Eigenaar', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Amsterdam", - short: "Amsterdam", - long: "Gemeente Amsterdam", - idName: "amsterdam4", - main: "amsterdam1", + country: 'Netherlands', + city: 'Amsterdam', + short: 'Amsterdam', + long: 'Gemeente Amsterdam', + idSourceName: 'amsterdam4', + main: 'amsterdam1', center: null, latitude: null, longitude: null, - info: "https://maps.amsterdam.nl/open_geodata/?k=257", + info: 'https://maps.amsterdam.nl/open_geodata/?k=257', broken: false, download: - "https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen4", - format: "csv", + 'https://maps.amsterdam.nl/open_geodata/excel.php?KAARTLAAG=BOMEN&THEMA=bomen4', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "Soortnaam_NL", - scientific: "Soortnaam_WTS", - location: "Boomtype", - height: "Boomhoogte", - planted: "Plantjaar", - owner: "Eigenaar", + common: 'Soortnaam_NL', + scientific: 'Soortnaam_WTS', + location: 'Boomtype', + height: 'Boomhoogte', + planted: 'Plantjaar', + owner: 'Eigenaar', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Den Haag", - short: "Den Haag", - long: "Den Haag", - idName: "haag", - main: "haag", + country: 'Netherlands', + city: 'Den Haag', + short: 'Den Haag', + long: 'Den Haag', + idSourceName: 'haag', + main: 'haag', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-csv", + info: 'https://data.overheid.nl/dataset/bomen-csv', broken: false, download: - "https://ckan.dataplatform.nl/dataset/dd3873f6-b2d0-42e8-94c7-f7b47dcb71f0/resource/7ac8ba4a-586e-43f2-b12e-014079c83f00/download/bomen-csv.zip", - format: "csv", + 'https://ckan.dataplatform.nl/dataset/dd3873f6-b2d0-42e8-94c7-f7b47dcb71f0/resource/7ac8ba4a-586e-43f2-b12e-014079c83f00/download/bomen-csv.zip', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "BOOMNUMMER", - scientific: "BOOMSOORT_WETENSCHAPPELIJ", - dbh: "STAMDIAMETERKLASSE", - age: "LEEFTIJDSKLASSE", - age: "LEEFTIJD", - owner: "EIGENAAR", + idReference: 'BOOMNUMMER', + scientific: 'BOOMSOORT_WETENSCHAPPELIJ', + dbh: 'STAMDIAMETERKLASSE', + age: 'LEEFTIJDSKLASSE', + age: 'LEEFTIJD', + owner: 'EIGENAAR', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Hilversum", - short: "Hilversum", - long: "Hilversum", - idName: "hilversum", - main: "hilversum", + country: 'Netherlands', + city: 'Hilversum', + short: 'Hilversum', + long: 'Hilversum', + idSourceName: 'hilversum', + main: 'hilversum', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-hilversum", + info: 'https://data.overheid.nl/dataset/bomen-hilversum', broken: true, download: - "https://ckan.dataplatform.nl/dataset/08fa5613-ec8f-4e43-ba2f-db986615075e/resource/2ae335c9-4228-4d4c-81a1-6688aa7218ac/download/bomenhilversum.csv", - format: "csv", + 'https://ckan.dataplatform.nl/dataset/08fa5613-ec8f-4e43-ba2f-db986615075e/resource/2ae335c9-4228-4d4c-81a1-6688aa7218ac/download/bomenhilversum.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "BOOMSOORT_WETENSCHAPPELIJK", - common: "BOOMSOORT_NEDERLANDS", - height: "BOOMHOOGTE", - planted: "PLANTSEIZOEN", + scientific: 'BOOMSOORT_WETENSCHAPPELIJK', + common: 'BOOMSOORT_NEDERLANDS', + height: 'BOOMHOOGTE', + planted: 'PLANTSEIZOEN', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Tilburg", - short: "Tilburg", - long: "Tilburg", - idName: "tilburg_nl", - main: "tilburg_nl", + country: 'Netherlands', + city: 'Tilburg', + short: 'Tilburg', + long: 'Tilburg', + idSourceName: 'tilburg_nl', + main: 'tilburg_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-tilburg", + info: 'https://data.overheid.nl/dataset/bomen-tilburg', broken: false, download: - "https://ckan.dataplatform.nl/dataset/96b46ab5-7638-46bb-b416-c480170b9a84/resource/6f639eb1-7497-4fc7-831b-d24e077bfe45/download/bomen.csv", - format: "csv", + 'https://ckan.dataplatform.nl/dataset/96b46ab5-7638-46bb-b416-c480170b9a84/resource/6f639eb1-7497-4fc7-831b-d24e077bfe45/download/bomen.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - updated: "datum_gemeten", - idReference: "boomnummer", - scientific: "latijnse_boomnaam", - common: "nederlandse_boomnaam", - planted: "plantjaar", - dbh: "diameter_in_cm", - height: "boomhoogte", + updated: 'datum_gemeten', + idReference: 'boomnummer', + scientific: 'latijnse_boomnaam', + common: 'nederlandse_boomnaam', + planted: 'plantjaar', + dbh: 'diameter_in_cm', + height: 'boomhoogte', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Eindhoven", - short: "Eindhoven", - long: "Eindhoven", - idName: "eindhoven_nl", - main: "eindhoven_nl", + country: 'Netherlands', + city: 'Eindhoven', + short: 'Eindhoven', + long: 'Eindhoven', + idSourceName: 'eindhoven_nl', + main: 'eindhoven_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-eindhoven", + info: 'https://data.overheid.nl/dataset/bomen-eindhoven', broken: false, download: - "https://ckan.dataplatform.nl/dataset/23d824dc-158f-4e23-8bbf-c10c00ce73cf/resource/0c8e87ba-0fde-48e4-a997-7abd04c7c692/download/bomen29-01.csv", - format: "csv", + 'https://ckan.dataplatform.nl/dataset/23d824dc-158f-4e23-8bbf-c10c00ce73cf/resource/0c8e87ba-0fde-48e4-a997-7abd04c7c692/download/bomen29-01.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "LATIJNSENA", - common: "BOOMSOORT", - planted: "PLANTJAAR", - height: "HOOGTE", - dbh: "DIAMETER", - health: "VITALITEIT", + scientific: 'LATIJNSENA', + common: 'BOOMSOORT', + planted: 'PLANTJAAR', + height: 'HOOGTE', + dbh: 'DIAMETER', + health: 'VITALITEIT', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Amersfoot", - short: "Amersfoot", - long: "Amersfoot", - idName: "amersfoot_nl", - main: "amersfoot_nl", + country: 'Netherlands', + city: 'Amersfoot', + short: 'Amersfoot', + long: 'Amersfoot', + idSourceName: 'amersfoot_nl', + main: 'amersfoot_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/amersfoort-gemeentelijke_bomen", + info: 'https://data.overheid.nl/dataset/amersfoort-gemeentelijke_bomen', broken: false, download: - "https://ckan.dataplatform.nl/dataset/a6054acf-3e41-4142-9b1a-52d73ff022f3/resource/7794f7e2-8bb9-45ba-9a9f-df910b09c40f/download/amersfoort-gemeentelijke_bomen.csv", - format: "csv", + 'https://ckan.dataplatform.nl/dataset/a6054acf-3e41-4142-9b1a-52d73ff022f3/resource/7794f7e2-8bb9-45ba-9a9f-df910b09c40f/download/amersfoort-gemeentelijke_bomen.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - location: "BOOMKLASSE", - height: "BOOMHOOGTE", - owner: "BEHEERDER", - crown: "KROONDIAMETER", - dbh: "STAMDIAMETER", - idReference: "ID", - common: "NEDERLANDSE_NAAM", - scientific: "BOOMSOORT", - planted: "PLANTJAAR", - ule: "LEVENSVERW", + location: 'BOOMKLASSE', + height: 'BOOMHOOGTE', + owner: 'BEHEERDER', + crown: 'KROONDIAMETER', + dbh: 'STAMDIAMETER', + idReference: 'ID', + common: 'NEDERLANDSE_NAAM', + scientific: 'BOOMSOORT', + planted: 'PLANTJAAR', + ule: 'LEVENSVERW', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Dordrecht", - short: "Dordrecht", - long: "Dordrecht", - idName: "dordrecht_nl", - main: "dordrecht_nl", + country: 'Netherlands', + city: 'Dordrecht', + short: 'Dordrecht', + long: 'Dordrecht', + idSourceName: 'dordrecht_nl', + main: 'dordrecht_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-dordrecht", + info: 'https://data.overheid.nl/dataset/bomen-dordrecht', broken: false, download: - "https://ckan.dataplatform.nl/dataset/4c1cd59b-1057-4d47-bd84-f67a9cfd0f27/resource/94612e3e-eaac-4ac4-8db1-cdda2bdf361c/download/allebomendordrecht-2016-sep-2.csv", + 'https://ckan.dataplatform.nl/dataset/4c1cd59b-1057-4d47-bd84-f67a9cfd0f27/resource/94612e3e-eaac-4ac4-8db1-cdda2bdf361c/download/allebomendordrecht-2016-sep-2.csv', format: null, filename: null, gdalOptions: null, @@ -323,32 +323,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "ELEMENTNUMMER", - scientific: "SRT_NAAM", - common: "Nederlandse naam", - height: "HOOGTE", - dbh: "DIAMETER", - planted: "AANLEGJAAR", - owner: "EIGENDOM", + idReference: 'ELEMENTNUMMER', + scientific: 'SRT_NAAM', + common: 'Nederlandse naam', + height: 'HOOGTE', + dbh: 'DIAMETER', + planted: 'AANLEGJAAR', + owner: 'EIGENDOM', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Lelystad", - short: "Lelystad", - long: "Lelystad", - idName: "lelystad_nl", - main: "lelystad_nl", + country: 'Netherlands', + city: 'Lelystad', + short: 'Lelystad', + long: 'Lelystad', + idSourceName: 'lelystad_nl', + main: 'lelystad_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-lelystad", + info: 'https://data.overheid.nl/dataset/bomen-lelystad', broken: true, download: - "https://ckan.dataplatform.nl/dataset/a510615b-165d-442a-8956-1df78feb321e/resource/c6950c16-dff5-40b4-b1b5-0b2a2dffb382/download/bomen.csv", + 'https://ckan.dataplatform.nl/dataset/a510615b-165d-442a-8956-1df78feb321e/resource/c6950c16-dff5-40b4-b1b5-0b2a2dffb382/download/bomen.csv', format: null, filename: null, gdalOptions: null, @@ -356,30 +356,30 @@ export default [ email: null, contact: null, crosswalk: { - common: "SOORT_NED", - scientific: "SOORT_LATIJN", - height: "HOOGTE", - health: "CONDITIE", - updated: "INSPECTIEDATUM", + common: 'SOORT_NED', + scientific: 'SOORT_LATIJN', + height: 'HOOGTE', + health: 'CONDITIE', + updated: 'INSPECTIEDATUM', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Sliedrecht", - short: "Sliedrecht", - long: "Sliedrecht", - idName: "sliedrecht_nl", - main: "sliedrecht_nl", + country: 'Netherlands', + city: 'Sliedrecht', + short: 'Sliedrecht', + long: 'Sliedrecht', + idSourceName: 'sliedrecht_nl', + main: 'sliedrecht_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-sliedrecht", + info: 'https://data.overheid.nl/dataset/bomen-sliedrecht', broken: false, download: - "https://ckan.dataplatform.nl/dataset/ab8997d4-8c32-4f96-aa3e-d5961baeaf6f/resource/fc898475-4fa6-47f3-9a9a-8e85acb7b6a4/download/sliedrechtbomen20170412.csv", + 'https://ckan.dataplatform.nl/dataset/ab8997d4-8c32-4f96-aa3e-d5961baeaf6f/resource/fc898475-4fa6-47f3-9a9a-8e85acb7b6a4/download/sliedrechtbomen20170412.csv', format: null, filename: null, gdalOptions: null, @@ -387,29 +387,29 @@ export default [ email: null, contact: null, crosswalk: { - planted: "Aanlegjaar", - common: "Naam_NL", - idReference: "Objectcode", - scientific: "Boomsort", + planted: 'Aanlegjaar', + common: 'Naam_NL', + idReference: 'Objectcode', + scientific: 'Boomsort', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Assen", - short: "Assen", - long: "Assen", - idName: "assen_nl", - main: "assen_nl", + country: 'Netherlands', + city: 'Assen', + short: 'Assen', + long: 'Assen', + idSourceName: 'assen_nl', + main: 'assen_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/dataset-bomen-assen#panel-4-downloadable-files", + info: 'https://data.overheid.nl/dataset/dataset-bomen-assen#panel-4-downloadable-files', broken: true, download: - "https://opendata.arcgis.com/datasets/3ad3233b9b1c4fb0bffb23b36b0474c9_0.csv", + 'https://opendata.arcgis.com/datasets/3ad3233b9b1c4fb0bffb23b36b0474c9_0.csv', format: null, filename: null, gdalOptions: null, @@ -417,32 +417,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "BOOMNUMMER", - updated: "DATUM", - scientific: "BOOMSOORT", - planted: "PLANTJAAR", - height: "CODE_HOOGTE", - health: "CONDITIE", - owner: "EIGENAARSTYPE", + idReference: 'BOOMNUMMER', + updated: 'DATUM', + scientific: 'BOOMSOORT', + planted: 'PLANTJAAR', + height: 'CODE_HOOGTE', + health: 'CONDITIE', + owner: 'EIGENAARSTYPE', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Arnhem", - short: "Arnhem", - long: "Arnhem", - idName: "arnhem_nl", - main: "arnhem_nl", + country: 'Netherlands', + city: 'Arnhem', + short: 'Arnhem', + long: 'Arnhem', + idSourceName: 'arnhem_nl', + main: 'arnhem_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomenkaart-arnhem#panel-4-downloadable-files", + info: 'https://data.overheid.nl/dataset/bomenkaart-arnhem#panel-4-downloadable-files', broken: false, download: - "https://opendata.arcgis.com/datasets/4d988cd7848049d3a574fcbd477985be_0.csv", + 'https://opendata.arcgis.com/datasets/4d988cd7848049d3a574fcbd477985be_0.csv', format: null, filename: null, gdalOptions: null, @@ -450,60 +450,60 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "BEHEERCODE", - scientific: "BOOMSOORT", - common: "NEDERLANDSE_NAAM", - planted: "PLANTJAAR", - owner: "EIGENAAR", + idReference: 'BEHEERCODE', + scientific: 'BOOMSOORT', + common: 'NEDERLANDSE_NAAM', + planted: 'PLANTJAAR', + owner: 'EIGENAAR', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Delft", - short: "Delft", - long: "Delft", - idName: "delft_nl", - main: "delft_nl", + country: 'Netherlands', + city: 'Delft', + short: 'Delft', + long: 'Delft', + idSourceName: 'delft_nl', + main: 'delft_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-in-beheer-door-gemeente-delft", + info: 'https://data.overheid.nl/dataset/bomen-in-beheer-door-gemeente-delft', broken: true, download: - "https://opendata.arcgis.com/datasets/e510d480282944c3a16c8a46d3d99064_0.csv?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D", - format: "csv", + 'https://opendata.arcgis.com/datasets/e510d480282944c3a16c8a46d3d99064_0.csv?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "ID_VELD", - scientific: "BOOMSOORT_", - height: "BOOMHOOGTE", - health: "CONDITIE_K", + idReference: 'ID_VELD', + scientific: 'BOOMSOORT_', + height: 'BOOMHOOGTE', + health: 'CONDITIE_K', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Groningen", - short: "Groningen", - long: "Groningen", - idName: "groningen_nl", - main: "groningen_nl", + country: 'Netherlands', + city: 'Groningen', + short: 'Groningen', + long: 'Groningen', + idSourceName: 'groningen_nl', + main: 'groningen_nl', center: null, latitude: null, longitude: null, - info: "https://ckan.dataplatform.nl/dataset/9861d295-21cd-4ece-8648-88b141dc3532", + info: 'https://ckan.dataplatform.nl/dataset/9861d295-21cd-4ece-8648-88b141dc3532', broken: false, download: - "https://ckan.dataplatform.nl/dataset/9861d295-21cd-4ece-8648-88b141dc3532/resource/4a52525e-04ac-4934-8294-a2566986b24f/download/gem_groningen_bomen.zip", + 'https://ckan.dataplatform.nl/dataset/9861d295-21cd-4ece-8648-88b141dc3532/resource/4a52525e-04ac-4934-8294-a2566986b24f/download/gem_groningen_bomen.zip', format: null, filename: null, gdalOptions: null, @@ -511,53 +511,53 @@ export default [ email: null, contact: null, crosswalk: { - common: "NEDNAAM", - scientific: "LATNAAM", - owner: "OMSCHRIJVP", + common: 'NEDNAAM', + scientific: 'LATNAAM', + owner: 'OMSCHRIJVP', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Alblasserdam", - short: "Alblasserdam", - long: "Alblasserdam", - idName: "alblasserdam_nl", - main: "alblasserdam_nl", + country: 'Netherlands', + city: 'Alblasserdam', + short: 'Alblasserdam', + long: 'Alblasserdam', + idSourceName: 'alblasserdam_nl', + main: 'alblasserdam_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-alblasserdam", + info: 'https://data.overheid.nl/dataset/bomen-alblasserdam', broken: false, download: - "https://ckan.dataplatform.nl/dataset/74c93ecc-82cc-46fa-8210-04818ae27279/resource/5bc33717-ff42-4aab-8bed-5ed0f618b1f8/download/gegevens-bomen-2017-alblasserdam.csv", + 'https://ckan.dataplatform.nl/dataset/74c93ecc-82cc-46fa-8210-04818ae27279/resource/5bc33717-ff42-4aab-8bed-5ed0f618b1f8/download/gegevens-bomen-2017-alblasserdam.csv', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "Boomsoort", common: "Boomsoort Nederlands" }, + crosswalk: { scientific: 'Boomsoort', common: 'Boomsoort Nederlands' }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Zvartewaterland", - short: "Zvartewaterland", - long: "Zvartewaterland", - idName: "zvartewaterland_nl", - main: "zvartewaterland_nl", + country: 'Netherlands', + city: 'Zvartewaterland', + short: 'Zvartewaterland', + long: 'Zvartewaterland', + idSourceName: 'zvartewaterland_nl', + main: 'zvartewaterland_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/bomen-zwartewaterland", + info: 'https://data.overheid.nl/dataset/bomen-zwartewaterland', broken: false, download: - "https://opendata.arcgis.com/datasets/70e9a2ad03cf49a5a45b2076091b7ef3_0.csv", + 'https://opendata.arcgis.com/datasets/70e9a2ad03cf49a5a45b2076091b7ef3_0.csv', format: null, filename: null, gdalOptions: null, @@ -565,158 +565,158 @@ export default [ email: null, contact: null, crosswalk: { - common: "NEDBOOMSOORT", - scientific: "LATBOOMSOORT", - planted: "AANLEGJAAR", + common: 'NEDBOOMSOORT', + scientific: 'LATBOOMSOORT', + planted: 'AANLEGJAAR', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Barendrecht", - short: "Barendrecht", - long: "Barendrecht", - idName: "barendrecht_nl", - main: "barendrecht_nl", + country: 'Netherlands', + city: 'Barendrecht', + short: 'Barendrecht', + long: 'Barendrecht', + idSourceName: 'barendrecht_nl', + main: 'barendrecht_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/58765-bomen-barendrecht", + info: 'https://data.overheid.nl/dataset/58765-bomen-barendrecht', broken: false, download: - "https://maps.bar-organisatie.nl/Online/Open%20Data%20Portaal/Barendrecht/Bomen/Bomen.CSV", - format: "csv", + 'https://maps.bar-organisatie.nl/Online/Open%20Data%20Portaal/Barendrecht/Bomen/Bomen.CSV', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - owner: "BEHEERDER", - common: "NEDBOOMSOORT", - scientific: "LATBOOMSOORT", - dbh: "DIAMETER", - planted: "AANLEGJAAR", - updated: "INSPECTIEDATUM", + owner: 'BEHEERDER', + common: 'NEDBOOMSOORT', + scientific: 'LATBOOMSOORT', + dbh: 'DIAMETER', + planted: 'AANLEGJAAR', + updated: 'INSPECTIEDATUM', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Zaanstad", - short: "Zaanstad", - long: "Zaanstad", - idName: "zaanstad_nl", - main: "zaanstad_nl", + country: 'Netherlands', + city: 'Zaanstad', + short: 'Zaanstad', + long: 'Zaanstad', + idSourceName: 'zaanstad_nl', + main: 'zaanstad_nl', center: null, latitude: null, longitude: null, - info: "https://data.overheid.nl/dataset/znstdor15o", + info: 'https://data.overheid.nl/dataset/znstdor15o', broken: false, download: - "https://ckan.dataplatform.nl/dataset/fde68bfe-9e7b-4db6-9924-485166029eaf/resource/96c805d4-fd3c-41ce-8e35-c98b30513819/download/znstdor15o-bor_vegetatie.csv", + 'https://ckan.dataplatform.nl/dataset/fde68bfe-9e7b-4db6-9924-485166029eaf/resource/96c805d4-fd3c-41ce-8e35-c98b30513819/download/znstdor15o-bor_vegetatie.csv', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "soortnaam_bomen" }, + crosswalk: { scientific: 'soortnaam_bomen' }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Nijmegen", - short: "Nijmegen", - long: "Nijmegen", - idName: "nijmegen_nl", - main: "nijmegen_nl", + country: 'Netherlands', + city: 'Nijmegen', + short: 'Nijmegen', + long: 'Nijmegen', + idSourceName: 'nijmegen_nl', + main: 'nijmegen_nl', center: null, latitude: null, longitude: null, - info: "https://opendata.nijmegen.nl/dataset/geoserver-bomen-nijmegen", + info: 'https://opendata.nijmegen.nl/dataset/geoserver-bomen-nijmegen', broken: true, download: - "https://services.nijmegen.nl/geoservices/extern_OpenData/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=extern_kaartviewer_GRN_BOMEN&outputFormat=csv", - format: "csv", + 'https://services.nijmegen.nl/geoservices/extern_OpenData/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=extern_kaartviewer_GRN_BOMEN&outputFormat=csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "ID", - planted: "PLANTJAAR", - scientific: "BOOMSOORT", - updated: "DATUM_BIJGEWERKT", + idReference: 'ID', + planted: 'PLANTJAAR', + scientific: 'BOOMSOORT', + updated: 'DATUM_BIJGEWERKT', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Haarlem", - short: "Haarlem", - long: "Haarlem", - idName: "haarlem_nl", - main: "haarlem_nl", + country: 'Netherlands', + city: 'Haarlem', + short: 'Haarlem', + long: 'Haarlem', + idSourceName: 'haarlem_nl', + main: 'haarlem_nl', center: null, latitude: null, longitude: null, - info: "https://www.haarlem.nl/opendata/open-data-detail/#/odp/odp_datasets.33", + info: 'https://www.haarlem.nl/opendata/open-data-detail/#/odp/odp_datasets.33', broken: false, download: - "https://data.haarlem.nl/geoserver/wfs?service=WFS&version=2.0&request=GetFeature&outputFormat=csv&srsName=EPSG%3A4326&typeName=gemeentehaarlem:bor_bomen&bbox=491380.2526954542,6859676.6140624685,532619.7473045458,6880323.3859375315,EPSG%3A3857", - format: "csv", + 'https://data.haarlem.nl/geoserver/wfs?service=WFS&version=2.0&request=GetFeature&outputFormat=csv&srsName=EPSG%3A4326&typeName=gemeentehaarlem:bor_bomen&bbox=491380.2526954542,6859676.6140624685,532619.7473045458,6880323.3859375315,EPSG%3A3857', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "boomnummer", - scientific: "name", - age: "leeftijd", - crown: "kroondiameter", - owner: "beheerder", + idReference: 'boomnummer', + scientific: 'name', + age: 'leeftijd', + crown: 'kroondiameter', + owner: 'beheerder', }, }, { isoAlpha2: 'NL', isoAlpha3: 'NLD', numericCountryCode: '528', - country: "Netherlands", - city: "Utrecht", - short: "Utrecht", - long: "Utrecht", - idName: "utrecht", - main: "utrecht", + country: 'Netherlands', + city: 'Utrecht', + short: 'Utrecht', + long: 'Utrecht', + idSourceName: 'utrecht', + main: 'utrecht', center: null, latitude: null, longitude: null, - info: "https://ckan.dataplatform.nl/dataset/bomenkaart/resource/2d6893b4-d56d-4865-b6cc-0bda42e547f5", + info: 'https://ckan.dataplatform.nl/dataset/bomenkaart/resource/2d6893b4-d56d-4865-b6cc-0bda42e547f5', broken: false, download: - "https://ckan.dataplatform.nl/datastore/dump/2d6893b4-d56d-4865-b6cc-0bda42e547f5?bom=True", - format: "csv", + 'https://ckan.dataplatform.nl/datastore/dump/2d6893b4-d56d-4865-b6cc-0bda42e547f5?bom=True', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Naam_Wet", - common: "Naam_NL", - planted: "Plantjaar", - idReference: "Boomnr", - owner: "Eigenaar", + scientific: 'Naam_Wet', + common: 'Naam_NL', + planted: 'Plantjaar', + idReference: 'Boomnr', + owner: 'Eigenaar', }, }, ]; diff --git a/sources/new_zealand.js b/sources/new_zealand.js index 077c5fb..fe1c92d 100644 --- a/sources/new_zealand.js +++ b/sources/new_zealand.js @@ -3,34 +3,34 @@ const country = [ isoAlpha2: 'NZ', isoAlpha3: 'NZL', numericCountryCode: '554', - country: "New Zealand", - } -] + country: 'New Zealand', + }, +]; export default [ { isoAlpha2: 'NZ', isoAlpha3: 'NZL', numericCountryCode: '554', - country: "New Zealand", - city: "Palmerston North", - short: "Palmerston North", - long: "Palmerston North", - idName: "palmerston_north", - main: "palmerston_north", + country: 'New Zealand', + city: 'Palmerston North', + short: 'Palmerston North', + long: 'Palmerston North', + idSourceName: 'palmerston_north', + main: 'palmerston_north', center: null, latitude: null, longitude: null, - info: "http://data-pncc.opendata.arcgis.com/datasets/077787e2299541bc8d2c2dbf8d7dc4e4_18/data", + info: 'http://data-pncc.opendata.arcgis.com/datasets/077787e2299541bc8d2c2dbf8d7dc4e4_18/data', broken: false, download: - "https://opendata.arcgis.com/datasets/077787e2299541bc8d2c2dbf8d7dc4e4_18.zip?outSR=%7B%22latestWkid%22%3A2193%2C%22wkid%22%3A2193%7D", - format: "zip", + 'https://opendata.arcgis.com/datasets/077787e2299541bc8d2c2dbf8d7dc4e4_18.zip?outSR=%7B%22latestWkid%22%3A2193%2C%22wkid%22%3A2193%7D', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "botanical_", common: "species" }, + crosswalk: { scientific: 'botanical_', common: 'species' }, }, ]; diff --git a/sources/norway.js b/sources/norway.js index ba000aa..0aaf52d 100644 --- a/sources/norway.js +++ b/sources/norway.js @@ -3,38 +3,38 @@ const country = [ isoAlpha2: 'NO', isoAlpha3: 'NOR', numericCountryCode: '578', - country: "Norway", - } -] + country: 'Norway', + }, +]; export default [ { isoAlpha2: 'NO', isoAlpha3: 'NOR', numericCountryCode: '578', - country: "Norway", - city: "Oslo", - short: "Oslo", - long: "Oslo", - idName: "oslo", - main: "oslo", + country: 'Norway', + city: 'Oslo', + short: 'Oslo', + long: 'Oslo', + idSourceName: 'oslo', + main: 'oslo', center: null, latitude: null, longitude: null, - info: "https://hub.arcgis.com/datasets/f256d2d837554edab8b53bb6af90bc8d_19?geometry=10.516%2C59.709%2C10.873%2C59.884", + info: 'https://hub.arcgis.com/datasets/f256d2d837554edab8b53bb6af90bc8d_19?geometry=10.516%2C59.709%2C10.873%2C59.884', broken: false, download: - "https://opendata.arcgis.com/datasets/f256d2d837554edab8b53bb6af90bc8d_19.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/f256d2d837554edab8b53bb6af90bc8d_19.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - updated: "last_edi_1", - scientific: "BotNavn", - common: "Artsnavn", + updated: 'last_edi_1', + scientific: 'BotNavn', + common: 'Artsnavn', }, }, ]; diff --git a/sources/portugal.js b/sources/portugal.js index 3b7552f..d025132 100644 --- a/sources/portugal.js +++ b/sources/portugal.js @@ -3,34 +3,34 @@ const country = [ isoAlpha2: 'PR', isoAlpha3: 'PRT', numericCountryCode: '620', - country: "Portugal", - } -] + country: 'Portugal', + }, +]; export default [ { isoAlpha2: 'PR', isoAlpha3: 'PRT', numericCountryCode: '620', - country: "Portugal", - city: "Lisbon", - short: "Lisbon", - long: "Lisbon", - idName: "lisbon", - main: "lisbon", + country: 'Portugal', + city: 'Lisbon', + short: 'Lisbon', + long: 'Lisbon', + idSourceName: 'lisbon', + main: 'lisbon', center: null, latitude: null, longitude: null, - info: "http://geodados.cm-lisboa.pt/datasets/arvoredo?geometry=-9.312%2C38.745%2C-9.148%2C38.768", + info: 'http://geodados.cm-lisboa.pt/datasets/arvoredo?geometry=-9.312%2C38.745%2C-9.148%2C38.768', broken: false, download: - "https://opendata.arcgis.com/datasets/202d0f1a7f234e449761af8af14436d6_0.zip", - format: "zip", - filename: "Arvoredo.shp", + 'https://opendata.arcgis.com/datasets/202d0f1a7f234e449761af8af14436d6_0.zip', + format: 'zip', + filename: 'Arvoredo.shp', gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "ESPECIE_VA", location: "LOCAL" }, + crosswalk: { scientific: 'ESPECIE_VA', location: 'LOCAL' }, }, ]; diff --git a/sources/spain.js b/sources/spain.js index d65a895..27c6934 100644 --- a/sources/spain.js +++ b/sources/spain.js @@ -3,184 +3,189 @@ const country = [ isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - } -] + country: 'Spain', + }, +]; export default [ { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Santiago de Compostela", - short: "Santiago de Compostela", - long: "Concello de Santiago de Compostela", - idName: "santiago", - main: "santiago", + country: 'Spain', + city: 'Santiago de Compostela', + short: 'Santiago de Compostela', + long: 'Concello de Santiago de Compostela', + idSourceName: 'santiago', + main: 'santiago', center: null, latitude: null, longitude: null, - info: "https://datos.santiagodecompostela.gal/catalogo/gl/dataset/arboredo", + info: 'https://datos.santiagodecompostela.gal/catalogo/gl/dataset/arboredo', broken: true, download: - "https://datos.santiagodecompostela.gal/catalogo/dataset/60b1928e-32a9-442a-8f69-0215ba0862a4/resource/fab2344b-3c5c-466b-9e63-2e05e11fd9ce/download/arboredo_points.zip", - format: "zip", + 'https://datos.santiagodecompostela.gal/catalogo/dataset/60b1928e-32a9-442a-8f69-0215ba0862a4/resource/fab2344b-3c5c-466b-9e63-2e05e11fd9ce/download/arboredo_points.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { location: "tipolexia" }, + crosswalk: { location: 'tipolexia' }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Barcelona", - short: "Barcelona", - long: "City of Barcelona", - idName: "barcelona", - main: "barcelona", + country: 'Spain', + city: 'Barcelona', + short: 'Barcelona', + long: 'City of Barcelona', + idSourceName: 'barcelona', + main: 'barcelona', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://opendata-ajuntament.barcelona.cat/data/dataset/27b3f8a7-e536-4eea-b025-ce094817b2bd/resource/28034af4-b636-48e7-b3df-fa1c422e6287/download", - format: "csv", + 'https://opendata-ajuntament.barcelona.cat/data/dataset/27b3f8a7-e536-4eea-b025-ce094817b2bd/resource/28034af4-b636-48e7-b3df-fa1c422e6287/download', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "NOM_CASTELLA", - scientific: "NOM_CIENTIFIC", - planted: "DATA_PLANTACIO", - idReference: "CODI", - crown: '(x) => ({ PETITA: "small", MITJANA: "average", GRAN: "large" }[x.ALCADA] || x.ALCADA)', + common: 'NOM_CASTELLA', + scientific: 'NOM_CIENTIFIC', + planted: 'DATA_PLANTACIO', + idReference: 'CODI', + crown: + '(x) => ({ PETITA: "small", MITJANA: "average", GRAN: "large" }[x.ALCADA] || x.ALCADA)', }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Valencia", - short: "Valencia", - long: "Valencia", - idName: "valencia_es", - main: "valencia_es", + country: 'Spain', + city: 'Valencia', + short: 'Valencia', + long: 'Valencia', + idSourceName: 'valencia_es', + main: 'valencia_es', center: null, latitude: null, longitude: null, - info: "https://github.com/stevage/OpenTrees/issues/29", + info: 'https://github.com/stevage/OpenTrees/issues/29', broken: true, - broken_reason: "select * from arbolado where false limit 0", - download: "http://mapas.valencia.es/lanzadera/opendata/arboles/JSON", - format: "geojson", + broken_reason: 'select * from arbolado where false limit 0', + download: 'http://mapas.valencia.es/lanzadera/opendata/arboles/JSON', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "planta", common: "castellano" }, + crosswalk: { scientific: 'planta', common: 'castellano' }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Sevilla", - short: "Sevilla", - long: "Sevilla", - idName: "sevilla_es", - main: "sevilla_es", + country: 'Spain', + city: 'Sevilla', + short: 'Sevilla', + long: 'Sevilla', + idSourceName: 'sevilla_es', + main: 'sevilla_es', center: null, latitude: null, longitude: null, - info: "https://sevilla-idesevilla.opendata.arcgis.com/datasets/f3393590cea54e3da883f30a27e8a1fd_0", + info: 'https://sevilla-idesevilla.opendata.arcgis.com/datasets/f3393590cea54e3da883f30a27e8a1fd_0', broken: false, download: - "https://sevilla-idesevilla.opendata.arcgis.com/datasets/f3393590cea54e3da883f30a27e8a1fd_0.zip", + 'https://sevilla-idesevilla.opendata.arcgis.com/datasets/f3393590cea54e3da883f30a27e8a1fd_0.zip', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "Nombre", height: "Altura", age: "Observ" }, + crosswalk: { scientific: 'Nombre', height: 'Altura', age: 'Observ' }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Manlleu", - short: "Manlleu", - long: "Manlleu", - idName: "manlleu_es", - main: "manlleu_es", + country: 'Spain', + city: 'Manlleu', + short: 'Manlleu', + long: 'Manlleu', + idSourceName: 'manlleu_es', + main: 'manlleu_es', center: null, latitude: null, longitude: null, - info: "https://dadesobertes-situam.opendata.arcgis.com/datasets/arbrat-del-nucli-urb%C3%A0", + info: 'https://dadesobertes-situam.opendata.arcgis.com/datasets/arbrat-del-nucli-urb%C3%A0', broken: false, download: - "https://opendata.arcgis.com/datasets/7255e3ea9235496fbd5f6ee244f21015_0.zip?outSR=%7B%22latestWkid%22%3A25831%2C%22wkid%22%3A25831%7D", + 'https://opendata.arcgis.com/datasets/7255e3ea9235496fbd5f6ee244f21015_0.zip?outSR=%7B%22latestWkid%22%3A25831%2C%22wkid%22%3A25831%7D', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { common: "NCOMU", scientific: "NCIENTIFIC", note: "OBSERVACIO" }, + crosswalk: { + common: 'NCOMU', + scientific: 'NCIENTIFIC', + note: 'OBSERVACIO', + }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Torrent", - short: "Torrent", - long: "Torrent", - idName: "torrent_es", - main: "torrent_es", + country: 'Spain', + city: 'Torrent', + short: 'Torrent', + long: 'Torrent', + idSourceName: 'torrent_es', + main: 'torrent_es', center: null, latitude: null, longitude: null, - info: "https://datos.gob.es/es/catalogo/l01462444-arbres-de-torrent-arboles-de-torrent", + info: 'https://datos.gob.es/es/catalogo/l01462444-arbres-de-torrent-arboles-de-torrent', broken: false, download: - "http://datosabiertos.torrent.es/dataset/b372b8dd-07fb-4973-a2af-cb9a7c8de9bb/resource/dbae0e9d-c48b-4185-8a51-2599b093fdba/download/ODMAArbolAislado.csv", + 'http://datosabiertos.torrent.es/dataset/b372b8dd-07fb-4973-a2af-cb9a7c8de9bb/resource/dbae0e9d-c48b-4185-8a51-2599b093fdba/download/ODMAArbolAislado.csv', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { scientific: "ESPECIE" }, + crosswalk: { scientific: 'ESPECIE' }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Arganda del Rey", - short: "Arganda del Rey", - long: "Ayuntamiento de Arganda del Rey", - idName: "arganda_es", - main: "arganda_es", + country: 'Spain', + city: 'Arganda del Rey', + short: 'Arganda del Rey', + long: 'Ayuntamiento de Arganda del Rey', + idSourceName: 'arganda_es', + main: 'arganda_es', center: null, latitude: null, longitude: null, - info: "https://datos.gob.es/es/catalogo/l01280148-inventario-arboles-casco-urbano-20151", + info: 'https://datos.gob.es/es/catalogo/l01280148-inventario-arboles-casco-urbano-20151', broken: false, download: - "https://datosabiertos.ayto-arganda.es/dataset/bc20e1e3-0c6c-4f0e-817b-c95f052e3783/resource/f41cfeb0-6d98-48c1-b8be-fa50c3b958aa/download/arbolado.csv", + 'https://datosabiertos.ayto-arganda.es/dataset/bc20e1e3-0c6c-4f0e-817b-c95f052e3783/resource/f41cfeb0-6d98-48c1-b8be-fa50c3b958aa/download/arbolado.csv', format: null, filename: null, gdalOptions: null, @@ -188,32 +193,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "REFERENCIA", - scientific: "EMPLAZAMIENTO", - common: "NOMBRE COMUN", - height: "ALTURA", - dbh: "DIAMETRO", - age: "EDAD", - health: "ESTADO", + idReference: 'REFERENCIA', + scientific: 'EMPLAZAMIENTO', + common: 'NOMBRE COMUN', + height: 'ALTURA', + dbh: 'DIAMETRO', + age: 'EDAD', + health: 'ESTADO', }, }, { isoAlpha2: 'ES', isoAlpha3: 'ESP', numericCountryCode: '724', - country: "Spain", - city: "Cáceres", - short: "Cáceres", - long: "Ayuntamiento de Cáceres", - idName: "caceres_es", - main: "caceres_es", + country: 'Spain', + city: 'Cáceres', + short: 'Cáceres', + long: 'Ayuntamiento de Cáceres', + idSourceName: 'caceres_es', + main: 'caceres_es', center: null, latitude: null, longitude: null, - info: "https://datos.gob.es/es/catalogo/l01100377-arboles-caceres", + info: 'https://datos.gob.es/es/catalogo/l01100377-arboles-caceres', broken: false, download: - "http://opendata.caceres.es/GetData/GetData?dataset=om:Arbol&format=geojson&geojson=Point", + 'http://opendata.caceres.es/GetData/GetData?dataset=om:Arbol&format=geojson&geojson=Point', format: null, filename: null, gdalOptions: null, @@ -221,12 +226,12 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "uri", + idReference: 'uri', scientific: '(x) =>\n String(x.dbpedia_owl_species).replace(/.*\\//, "").replace(/_/g, " ")', family: '(x) =>\n String(x.dbpedia_owl_family).replace(/.*\\//, "").replace(/_/g, " ")', - height: "om_altura", + height: 'om_altura', }, }, ]; diff --git a/sources/sweden.js b/sources/sweden.js index e45c94c..274687e 100644 --- a/sources/sweden.js +++ b/sources/sweden.js @@ -3,60 +3,60 @@ const country = [ isoAlpha2: 'SE', isoAlpha3: 'SWE', numericCountryCode: '752', - country: "Sweden", - } -] + country: 'Sweden', + }, +]; export default [ { isoAlpha2: 'SE', isoAlpha3: 'SWE', numericCountryCode: '752', - country: "Sweden", - city: "Umea", - short: "Umea", - long: "Umea", - idName: "umea", - main: "umea", + country: 'Sweden', + city: 'Umea', + short: 'Umea', + long: 'Umea', + idSourceName: 'umea', + main: 'umea', center: null, latitude: null, longitude: null, - info: "https://opendata.umea.se/explore/dataset/trad-som-forvaltas-av-gator-och-parker/export/?disjunctive.tradart_vetenskap_namn_1_1_2&disjunctive.tradart_svenskt_namn_1_1_3", + info: 'https://opendata.umea.se/explore/dataset/trad-som-forvaltas-av-gator-och-parker/export/?disjunctive.tradart_vetenskap_namn_1_1_2&disjunctive.tradart_svenskt_namn_1_1_3', broken: false, download: - "https://opendata.umea.se/explore/dataset/trad-som-forvaltas-av-gator-och-parker/download/?format=shp&timezone=Europe/Stockholm&lang=en", - format: "zip", + 'https://opendata.umea.se/explore/dataset/trad-som-forvaltas-av-gator-och-parker/download/?format=shp&timezone=Europe/Stockholm&lang=en', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "tradart_vet", - common: "tradart_sve", - location: "gatu_eller", - planted: "planterings", + scientific: 'tradart_vet', + common: 'tradart_sve', + location: 'gatu_eller', + planted: 'planterings', }, }, { isoAlpha2: 'SE', isoAlpha3: 'SWE', numericCountryCode: '752', - country: "Sweden", - city: "Trädportalen", - short: "Trädportalen", - long: "Trädportalen", - idName: "tradportalen", - main: "tradportalen", + country: 'Sweden', + city: 'Trädportalen', + short: 'Trädportalen', + long: 'Trädportalen', + idSourceName: 'tradportalen', + main: 'tradportalen', center: null, latitude: null, longitude: null, - info: "https://www.tradportalen.se/Summary.aspx", + info: 'https://www.tradportalen.se/Summary.aspx', broken: false, download: - "https://tradportalen.s3.eu-north-1.amazonaws.com/tradportalen.zip", - format: "zip", - filename: "data/combined.json", + 'https://tradportalen.s3.eu-north-1.amazonaws.com/tradportalen.zip', + format: 'zip', + filename: 'data/combined.json', gdalOptions: null, license: null, email: null, @@ -64,8 +64,8 @@ export default [ crosswalk: { scientific: '(x) => String(x.Species).split(", ")[1]', common: '(x) => String(x.Species).split(", ")[0]', - height: "Height", - dbh: "(x) => (Number(x.TrunkCircumference) / 3.14159) * 2", + height: 'Height', + dbh: '(x) => (Number(x.TrunkCircumference) / 3.14159) * 2', }, }, ]; diff --git a/sources/switzerland.js b/sources/switzerland.js index 62c618d..e465dec 100644 --- a/sources/switzerland.js +++ b/sources/switzerland.js @@ -3,29 +3,29 @@ const country = [ isoAlpha2: 'CH', isoAlpha3: 'CHE', numericCountryCode: '756', - country: "Switzerland", - } -] + country: 'Switzerland', + }, +]; export default [ { isoAlpha2: 'CH', isoAlpha3: 'CHE', numericCountryCode: '756', - country: "Switzerland", - city: "Basel", - short: "Basel", - long: "Basel", - idName: "basel", - main: "basel", + country: 'Switzerland', + city: 'Basel', + short: 'Basel', + long: 'Basel', + idSourceName: 'basel', + main: 'basel', center: null, latitude: null, longitude: null, - info: "https://data.bs.ch/explore/dataset/100052/information/", + info: 'https://data.bs.ch/explore/dataset/100052/information/', broken: false, download: - "https://data.bs.ch/explore/dataset/100052/download/?format=shp&timezone=Australia/Sydney&lang=en", - format: "zip", + 'https://data.bs.ch/explore/dataset/100052/download/?format=shp&timezone=Australia/Sydney&lang=en', + format: 'zip', filename: null, gdalOptions: null, license: null, @@ -34,8 +34,8 @@ export default [ crosswalk: { scientific: '(x) => String(x.art).replace(/ \\(.*/, "")', common: '(x) => (String(x.art).match(/\\((.*)\\)/) || ["", ""])[1]', - planted: "pflanzdatu", - age: "baumalter", + planted: 'pflanzdatu', + age: 'baumalter', }, }, ]; diff --git a/sources/uk.js b/sources/uk.js index d455662..3213d22 100644 --- a/sources/uk.js +++ b/sources/uk.js @@ -3,243 +3,247 @@ const country = [ isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - } -] + country: 'United Kingdom', + }, +]; export default [ { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "Belfast", - short: "Belfast", - long: "Belfast", - idName: "belfast", - main: "belfast", + country: 'United Kingdom', + city: 'Belfast', + short: 'Belfast', + long: 'Belfast', + idSourceName: 'belfast', + main: 'belfast', center: null, latitude: null, longitude: null, - info: "https://www.belfastcity.gov.uk/council/Openandlinkeddata/opendatasets.aspx", + info: 'https://www.belfastcity.gov.uk/council/Openandlinkeddata/opendatasets.aspx', broken: true, download: - "https://www.belfastcity.gov.uk/nmsruntime/saveasdialog.aspx?lID=14543&sID=2430", - format: "csv", + 'https://www.belfastcity.gov.uk/nmsruntime/saveasdialog.aspx?lID=14543&sID=2430', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - location: "TYPEOFTREE", - common: "SPECIESTYPE", - scientific: "SPECIES", - age: "AGE", - health: "CONDITION", - dbh: "DIAMETERinCENTIMETRES", - spread: "SPREADRADIUSinMETRES", - height: "TREEHEIGHTinMETRES", + location: 'TYPEOFTREE', + common: 'SPECIESTYPE', + scientific: 'SPECIES', + age: 'AGE', + health: 'CONDITION', + dbh: 'DIAMETERinCENTIMETRES', + spread: 'SPREADRADIUSinMETRES', + height: 'TREEHEIGHTinMETRES', }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "London", - short: "London", - long: "Greater London Authority", - idName: "london", - main: "london", + country: 'United Kingdom', + city: 'London', + short: 'London', + long: 'Greater London Authority', + idSourceName: 'london', + main: 'london', center: null, latitude: null, longitude: null, info: null, broken: true, download: - "https://data.london.gov.uk/download/local-authority-maintained-trees/c52e733d-bf7e-44b8-9c97-827cb2bc53be/london_street_trees_gla_20180214.csv", - format: "csv", + 'https://data.london.gov.uk/download/local-authority-maintained-trees/c52e733d-bf7e-44b8-9c97-827cb2bc53be/london_street_trees_gla_20180214.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "gla_id", - scientific: "species_name", - common: "common_name", - note: "display_name", + idReference: 'gla_id', + scientific: 'species_name', + common: 'common_name', + note: 'display_name', }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "Bristol", - short: "Bristol", - long: "Bristol", - idName: "bristol", - main: "bristol", + country: 'United Kingdom', + city: 'Bristol', + short: 'Bristol', + long: 'Bristol', + idSourceName: 'bristol', + main: 'bristol', center: null, latitude: null, longitude: null, - info: "https://opendata.bristol.gov.uk/explore/dataset/trees/export/", + info: 'https://opendata.bristol.gov.uk/explore/dataset/trees/export/', broken: false, download: - "https://opendata.bristol.gov.uk/explore/dataset/trees/download/?format=geojson&timezone=Australia/Sydney&lang=en", - format: "geojson", + 'https://opendata.bristol.gov.uk/explore/dataset/trees/download/?format=geojson&timezone=Australia/Sydney&lang=en', + format: 'geojson', filename: null, gdalOptions: null, license: null, - email: "team@treesforstreets.org", - contact: "Trees for Streets", + email: 'team@treesforstreets.org', + contact: 'Trees for Streets', crosswalk: { - dbh: "dbh", - height: "crown_height", - common: "full_common_name", - scientific: "latin_name", - crown: "(x) => x.crown_width", + dbh: 'dbh', + height: 'crown_height', + common: 'full_common_name', + scientific: 'latin_name', + crown: '(x) => x.crown_width', }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "Edinburgh", - short: "Edinburgh", - long: "Edinburgh", - idName: "edinburgh", - main: "edinburgh", + country: 'United Kingdom', + city: 'Edinburgh', + short: 'Edinburgh', + long: 'Edinburgh', + idSourceName: 'edinburgh', + main: 'edinburgh', center: null, latitude: null, longitude: null, - info: "https://data.edinburghcouncilmaps.info/datasets/cityofedinburgh::trees/about", + info: 'https://data.edinburghcouncilmaps.info/datasets/cityofedinburgh::trees/about', broken: false, download: - "https://opendata.arcgis.com/api/v3/datasets/46fe85843cb8494abbf37c87ea94936b_39/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1", - format: "geojson", + 'https://opendata.arcgis.com/api/v3/datasets/46fe85843cb8494abbf37c87ea94936b_39/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "LatinName", - common: "CommonName", - height: "Height", - spread: "Spread", - age: "AgeGroup", - dbh: "DiameterAtBreastHeight", + scientific: 'LatinName', + common: 'CommonName', + height: 'Height', + spread: 'Spread', + age: 'AgeGroup', + dbh: 'DiameterAtBreastHeight', }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "Dundee", - short: "Dundee", - long: "Dundee City Council", - idName: "dundee_uk", - main: "dundee_uk", + country: 'United Kingdom', + city: 'Dundee', + short: 'Dundee', + long: 'Dundee City Council', + idSourceName: 'dundee_uk', + main: 'dundee_uk', center: null, latitude: null, longitude: null, - info: "https://data.dundeecity.gov.uk/dataset/trees", + info: 'https://data.dundeecity.gov.uk/dataset/trees', broken: false, download: - "https://data.dundeecity.gov.uk/datastore/dump/e54ef90a-76e5-415e-a272-5e489d9f5c67", - format: "csv", + 'https://data.dundeecity.gov.uk/datastore/dump/e54ef90a-76e5-415e-a272-5e489d9f5c67', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "TREE_NUMBER", - height: "HEIGHT_M", - dbh: "GIRTH", - age: "AGE_CLASS", - scientific: "SCIENTIFIC_NAME", - common: "POPULAR_NAME", + idReference: 'TREE_NUMBER', + height: 'HEIGHT_M', + dbh: 'GIRTH', + age: 'AGE_CLASS', + scientific: 'SCIENTIFIC_NAME', + common: 'POPULAR_NAME', }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "York", - short: "York", - long: "City of York Council", - idName: "york_uk", - main: "york_uk", + country: 'United Kingdom', + city: 'York', + short: 'York', + long: 'City of York Council', + idSourceName: 'york_uk', + main: 'york_uk', center: null, latitude: null, longitude: null, - info: "https://data.gov.uk/dataset/12dcc527-a7e2-4b23-a3c5-1501053ff0f5/council-owned-trees", + info: 'https://data.gov.uk/dataset/12dcc527-a7e2-4b23-a3c5-1501053ff0f5/council-owned-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/30f38f358843467daa2d93074a03b8d5_3.csv", - format: "csv", + 'https://opendata.arcgis.com/datasets/30f38f358843467daa2d93074a03b8d5_3.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { idReference: "TREEID", scientific: "BOTANICAL", common: "SPECIES" }, + crosswalk: { + idReference: 'TREEID', + scientific: 'BOTANICAL', + common: 'SPECIES', + }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "York", - short: "York", - long: "York", - idName: "york-private_uk", - main: "york_uk", + country: 'United Kingdom', + city: 'York', + short: 'York', + long: 'York', + idSourceName: 'york-private_uk', + main: 'york_uk', center: null, latitude: null, longitude: null, - info: "https://data.gov.uk/dataset/c166b067-5a9d-487b-a37d-4d350f8cff51/private-trees", + info: 'https://data.gov.uk/dataset/c166b067-5a9d-487b-a37d-4d350f8cff51/private-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/a602aca10afb49659720b435d3f54023_18.csv", - format: "csv", + 'https://opendata.arcgis.com/datasets/a602aca10afb49659720b435d3f54023_18.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { owner: "OWNER", common: "SPECIES", scientific: "BOTANICAL" }, + crosswalk: { owner: 'OWNER', common: 'SPECIES', scientific: 'BOTANICAL' }, }, { isoAlpha2: 'GB', isoAlpha3: 'GBR', numericCountryCode: '826', - country: "United Kingdom", - city: "Craig-y-Nos", - short: "Craig-y-Nos", - long: "Craig-y-Nos Country Park", - idName: "craigynos_uk", - main: "craigynos_uk", + country: 'United Kingdom', + city: 'Craig-y-Nos', + short: 'Craig-y-Nos', + long: 'Craig-y-Nos Country Park', + idSourceName: 'craigynos_uk', + main: 'craigynos_uk', center: null, latitude: null, longitude: null, - info: "https://data.gov.uk/dataset/35853f97-5cb9-4779-89aa-87fd4d657595/craig-y-nos-tree-survey", + info: 'https://data.gov.uk/dataset/35853f97-5cb9-4779-89aa-87fd4d657595/craig-y-nos-tree-survey', broken: false, download: - "https://gis.beacons-npa.gov.uk/geoserver/inspire/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=inspire:cyn_tree_survey", - format: "gml", + 'https://gis.beacons-npa.gov.uk/geoserver/inspire/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=inspire:cyn_tree_survey', + format: 'gml', filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { updated: "survey_date" }, + crosswalk: { updated: 'survey_date' }, }, ]; diff --git a/sources/usa.js b/sources/usa.js index 0a4600b..ac0cf32 100644 --- a/sources/usa.js +++ b/sources/usa.js @@ -2,15 +2,15 @@ const FEET = 3.280084; const INCHES = 2.54; function numeric(x) { - return Number.isFinite(x) ? x : null; + return Number.isFinite(x) ? x : null; } function inches(field) { - return tree => numeric(Number(tree[field]) * 2.54); + return (tree) => numeric(Number(tree[field]) * 2.54); } function feet(field) { - return tree => numeric(Number(tree[field]) / 3.280084); + return (tree) => numeric(Number(tree[field]) / 3.280084); } const country = [ @@ -18,38 +18,38 @@ const country = [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - } -] + country: 'United States of America', + }, +]; export default [ { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "WI", - city: "Madison", - short: "Madison", - long: "Madison", - idName: "madison", - main: "madison", + country: 'United States of America', + state: 'WI', + city: 'Madison', + short: 'Madison', + long: 'Madison', + idSourceName: 'madison', + main: 'madison', center: null, latitude: null, longitude: null, - info: null, + info: 'https://dnr.wisconsin.gov/topic/urbanforests/ufia/plan-collectingdata', broken: false, download: - "https://opendata.arcgis.com/datasets/b700541a20e446839b18d62426c266a3_0.zip", - format: "zip", - filename: "Street_Trees.shp", + 'https://opendata.arcgis.com/datasets/b700541a20e446839b18d62426c266a3_0.zip', + format: 'zip', + filename: 'Street_Trees.shp', gdalOptions: null, license: null, - email: null, + email: 'DNRUrbanForestryAssessment@Wisconsin.gov', contact: null, - crosswalk: { - common: "SPECIES", - scientific: "SPECIES", + crosswalk: { + common: 'SPECIES', + scientific: 'SPECIES', dbh: (x) => numeric(Number(x.DIAMETER) * INCHES), }, }, @@ -57,56 +57,56 @@ export default [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "OR", - city: "Portland", - short: "Portland", - long: "Portland, Oregon", - idName: "pdx_street", - main: "pdx_street", + country: 'United States of America', + state: 'OR', + city: 'Portland', + short: 'Portland', + long: 'Portland, Oregon', + idSourceName: 'pdx_street', + main: 'pdx_street', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://opendata.arcgis.com/datasets/eb67a0ad684d4bb6afda51dc065d1664_25.zip", - format: "zip", - filename: "Street_Trees.shp", + 'https://opendata.arcgis.com/datasets/eb67a0ad684d4bb6afda51dc065d1664_25.zip', + format: 'zip', + filename: 'Street_Trees.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Scientific", - genus: "Genus", - family: "Family", - common: "Common", - health: "Condition", + scientific: 'Scientific', + genus: 'Genus', + family: 'Family', + common: 'Common', + health: 'Condition', dbh: (x) => Math.round(x.DBH * 2.54 * 10) / 10, - note: "Notes", + note: 'Notes', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "OR", - city: "Portland, Oregon", - short: "Portland, Oregon", - long: "Portland, Oregon", - idName: "pdx_park", - main: "pdx_street", + country: 'United States of America', + state: 'OR', + city: 'Portland, Oregon', + short: 'Portland, Oregon', + long: 'Portland, Oregon', + idSourceName: 'pdx_park', + main: 'pdx_street', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://opendata.arcgis.com/datasets/83a7e3f6a1d94db09f24849ee90f4be2_220.zip?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D&session=undefined", - format: "zip", - filename: "Parks_Tree_Inventory.shp", + 'https://opendata.arcgis.com/datasets/83a7e3f6a1d94db09f24849ee90f4be2_220.zip?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D&session=undefined', + format: 'zip', + filename: 'Parks_Tree_Inventory.shp', gdalOptions: null, license: null, email: null, @@ -114,191 +114,191 @@ export default [ crosswalk: { dbh: (x) => Math.round(x.DBH * 2.54 * 10) / 10, height: (x) => Math.round((x.HEIGHT / 3.280084) * 10) / 10, - health: "Condition", - crown: "CrownWidth", - family: "Family", - scientific: "Genus_spec", - common: "Common_nam", - note: "Species_fa", + health: 'Condition', + crown: 'CrownWidth', + family: 'Family', + scientific: 'Genus_spec', + common: 'Common_nam', + note: 'Species_fa', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CT", - city: "New Haven", - short: "New Haven", - long: "New Haven", - idName: "new_haven", - main: "new_haven", + country: 'United States of America', + state: 'CT', + city: 'New Haven', + short: 'New Haven', + long: 'New Haven', + idSourceName: 'new_haven', + main: 'new_haven', center: null, latitude: null, longitude: null, - info: "https://urban-resources-initiative.carto.com/me", + info: 'https://urban-resources-initiative.carto.com/me', broken: false, download: - "https://urban-resources-initiative.carto.com/api/v2/sql?filename=newhavenstreettrees_carto_mapping_05242022&q=select+*+from+public.newhavenstreettrees_carto_mapping_05242022&format=csv&bounds=&api_key=&skipfields=the_geom_webmercator,the_geom", - format: "csv", - filename: "new_haven.csv", + 'https://urban-resources-initiative.carto.com/api/v2/sql?filename=newhavenstreettrees_carto_mapping_05242022&q=select+*+from+public.newhavenstreettrees_carto_mapping_05242022&format=csv&bounds=&api_key=&skipfields=the_geom_webmercator,the_geom', + format: 'csv', + filename: 'new_haven.csv', gdalOptions: null, license: null, - email: "colleen.murphy-dunning@yale.edu", - contact: "Colleen Murphy-Dunning", + email: 'colleen.murphy-dunning@yale.edu', + contact: 'Colleen Murphy-Dunning', crosswalk: { - common: "name", - scientific: "species", - genus: "genus", - species: "species2", - dbh: "dbh", - planted: "planting", - address: "address", - idReference: "cartodb_id" + common: 'name', + scientific: 'species', + genus: 'genus', + species: 'species2', + dbh: 'dbh', + planted: 'planting', + address: 'address', + idReference: 'cartodb_id', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NY", - city: "New York City", - short: "New York City", - long: "New York City", - idName: "nyc", - main: "nyc", + country: 'United States of America', + state: 'NY', + city: 'New York City', + short: 'New York City', + long: 'New York City', + idSourceName: 'nyc', + main: 'nyc', center: null, latitude: null, longitude: null, - info: "https://data.cityofnewyork.us/browse?q=tree&sortBy=relevance", + info: 'https://data.cityofnewyork.us/browse?q=tree&sortBy=relevance', broken: false, download: // "https://data.cityofnewyork.us/api/views/uvpi-gqnh/rows.csv?accessType=DOWNLOAD", - "https://data.cityofnewyork.us/api/views/5rq2-4hqu/rows.csv?accessType=DOWNLOAD", - // "https://data.cityofnewyork.us/api/geospatial/pi5s-9p35?method=export&format=GeoJSON", - // "https://data.cityofnewyork.us/api/views/k5ta-2trh/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.cityofnewyork.us/api/views/5rq2-4hqu/rows.csv?accessType=DOWNLOAD', + // "https://data.cityofnewyork.us/api/geospatial/pi5s-9p35?method=export&format=GeoJSON", + // "https://data.cityofnewyork.us/api/views/k5ta-2trh/rows.csv?accessType=DOWNLOAD", + format: 'csv', // format: "geojson", - filename: "nyc.csv", + filename: 'nyc.csv', // filename: "2015 Street Tree Census - Tree Data.geojson", gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - dbh: "tree_dbh", - scientific: "spc_latin", - common: "spc_common", - genus: (x) => x.spc_latin.split(" ")[0], - health: "health", - idReference: "tree_id", - address: "address", - zipcode: "postcode", - neighborhood: "borough", + idReference: 'tree_id', + dbh: 'tree_dbh', + scientific: 'spc_latin', + common: 'spc_common', + genus: (x) => x.spc_latin.split(' ')[0], + health: 'health', + idReference: 'tree_id', + address: 'address', + zipcode: 'postcode', + neighborhood: 'borough', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NY", - city: "New York City", - short: "New York City", - long: "New York City", - idName: "nyc_forest", - main: "nyc", + country: 'United States of America', + state: 'NY', + city: 'New York City', + short: 'New York City', + long: 'New York City', + idSourceName: 'nyc_forest', + main: 'nyc', center: null, latitude: null, longitude: null, - info: "https://data.cityofnewyork.us/browse?q=tree&sortBy=relevance", + info: 'https://data.cityofnewyork.us/browse?q=tree&sortBy=relevance', broken: false, download: - "https://data.cityofnewyork.us/api/views/k5ta-2trh/rows.csv?accessType=DOWNLOAD", - format: "csv", - filename: "nyc-forest.csv", + 'https://data.cityofnewyork.us/api/views/k5ta-2trh/rows.csv?accessType=DOWNLOAD', + format: 'csv', + filename: 'nyc-forest.csv', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "tree_id", - dbh: "tree_dbh", - scientific: "spc_latin", - common: "spc_common", - genus: (x) => x.spc_latin.split(" ")[0], - health: "health", - idReference: "tree_id", - address: "address", - zipcode: "postcode", - neighborhood: "borough", + idReference: 'tree_id', + dbh: 'tree_dbh', + scientific: 'spc_latin', + common: 'spc_common', + genus: (x) => x.spc_latin.split(' ')[0], + health: 'health', + idReference: 'tree_id', + address: 'address', + zipcode: 'postcode', + neighborhood: 'borough', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "RI", - city: "Providence", - short: "Providence", - long: "Providence, Rhode Island", - idName: "providence", - main: "providence", + country: 'United States of America', + state: 'RI', + city: 'Providence', + short: 'Providence', + long: 'Providence, Rhode Island', + idSourceName: 'providence', + main: 'providence', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.providenceri.gov/api/views/uv9w-h8i4/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.providenceri.gov/api/views/uv9w-h8i4/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Species", - dbh: (x) => numeric(Number(x["Diameter in Inches"]) * INCHES), + scientific: 'Species', + dbh: (x) => numeric(Number(x['Diameter in Inches']) * INCHES), }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "DC", - city: "Washington DC", - short: "Washington DC", - long: "Washington DC", - idName: "washington_dc", - main: "washington_dc", + country: 'United States of America', + state: 'DC', + city: 'Washington DC', + short: 'Washington DC', + long: 'Washington DC', + idSourceName: 'washington_dc', + main: 'washington_dc', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://opendata.arcgis.com/datasets/f6c3c04113944f23a7993f2e603abaf2_23.zip", - format: "zip", - filename: "Urban_Forestry_Street_Trees.shp", + 'https://opendata.arcgis.com/datasets/f6c3c04113944f23a7993f2e603abaf2_23.zip', + format: 'zip', + filename: 'Urban_Forestry_Street_Trees.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "SCI_NM", - genus: "GENUS_NAME", - common: "CMMN_NM", - dbh: "DBH", - health: "CONDITION", - updated: "LAST_EDITED_DATE", - planted: "DATE_PLANT", - family: "FAM_NAME", - note: "TREE_NOTES" + scientific: 'SCI_NM', + genus: 'GENUS_NAME', + common: 'CMMN_NM', + dbh: 'DBH', + health: 'CONDITION', + updated: 'LAST_EDITED_DATE', + planted: 'DATE_PLANT', + family: 'FAM_NAME', + note: 'TREE_NOTES', // map additional crown fields }, }, @@ -306,159 +306,159 @@ export default [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NY", - city: "Buffalo", - short: "Buffalo", - long: "City of Buffalo, NY", - idName: "buffalo", - main: "buffalo", + country: 'United States of America', + state: 'NY', + city: 'Buffalo', + short: 'Buffalo', + long: 'City of Buffalo, NY', + idSourceName: 'buffalo', + main: 'buffalo', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.buffalony.gov/api/views/n4ni-uuec/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.buffalony.gov/api/views/n4ni-uuec/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Botanical Name", - common: "Common Name", + scientific: 'Botanical Name', + common: 'Common Name', dbh: (x) => numeric(Number(x.DBH) * 2.54), - idReference: "Site ID", + idReference: 'Site ID', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "PA", - city: "Philadelphia", - short: "Philadelphia", - long: "City of Philadelphia", - idName: "philadelphia", - main: "philadelphia", + country: 'United States of America', + state: 'PA', + city: 'Philadelphia', + short: 'Philadelphia', + long: 'City of Philadelphia', + idSourceName: 'philadelphia', + main: 'philadelphia', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://opendata.arcgis.com/api/v3/datasets/30ef36e9e880468fa74e2d5b18da4cfb_0/downloads/data?format=geojson&spatialRefId=4326", - format: "geojson", + 'https://opendata.arcgis.com/api/v3/datasets/30ef36e9e880468fa74e2d5b18da4cfb_0/downloads/data?format=geojson&spatialRefId=4326', + format: 'geojson', filename: null, gdalOptions: null, license: null, - email: "Chris.Park@phila.gov", - contact: "Chris Park", + email: 'Chris.Park@phila.gov', + contact: 'Chris Park', crosswalk: { common: (x) => x.TREE_NAME.split(' - ')[1], scientific: (x) => x.TREE_NAME.split(' - ')[0], - dbh: "TREE_DBH", - planted: "YEAR", + dbh: 'TREE_DBH', + planted: 'YEAR', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CO", - city: "Denver", - short: "Denver", - long: "Denver", - idName: "denver", - main: "denver", + country: 'United States of America', + state: 'CO', + city: 'Denver', + short: 'Denver', + long: 'Denver', + idSourceName: 'denver', + main: 'denver', center: null, latitude: null, longitude: null, info: null, broken: false, download: - "https://data.colorado.gov/api/views/wz8h-dap6/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.colorado.gov/api/views/wz8h-dap6/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "SITE_ID", - scientific: "SPECIES_BO", - common: "SPECIES_CO", - dbh: "DIAMETER", - location: "LOCATION_NAME", + idReference: 'SITE_ID', + scientific: 'SPECIES_BO', + common: 'SPECIES_CO', + dbh: 'DIAMETER', + location: 'LOCATION_NAME', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CO", - city: "Boulder", - short: "Boulder", - long: "City of Boulder, Colorado", - idName: "boulder", - main: "boulder", + country: 'United States of America', + state: 'CO', + city: 'Boulder', + short: 'Boulder', + long: 'City of Boulder, Colorado', + idSourceName: 'boulder', + main: 'boulder', center: null, latitude: null, longitude: null, - info: "https://data-boulder.opendata.arcgis.com/datasets/dbbae8bdb0a44d17934243b88e85ef2b_0", + info: 'https://data-boulder.opendata.arcgis.com/datasets/dbbae8bdb0a44d17934243b88e85ef2b_0', broken: false, download: - "https://opendata.arcgis.com/datasets/dbbae8bdb0a44d17934243b88e85ef2b_0.zip", - format: "zip", - filename: "Tree_Inventory.shp", + 'https://opendata.arcgis.com/datasets/dbbae8bdb0a44d17934243b88e85ef2b_0.zip', + format: 'zip', + filename: 'Tree_Inventory.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "LATINNAME", - common: "COMMONNAME", - variety: "CULTIVAR", - dbh: (x) => "DBHINT" * 2.54, - location: "LOCTYPE", + scientific: 'LATINNAME', + common: 'COMMONNAME', + variety: 'CULTIVAR', + dbh: (x) => 'DBHINT' * 2.54, + location: 'LOCTYPE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "MA", - city: "Cambridge", - short: "Cambridge", - long: "Cambridge", - idName: "cambridge", - main: "cambridge", + country: 'United States of America', + state: 'MA', + city: 'Cambridge', + short: 'Cambridge', + long: 'Cambridge', + idSourceName: 'cambridge', + main: 'cambridge', center: null, latitude: null, longitude: null, - info: "https://data.cambridgema.gov/Public-Works/Street-Trees/ni4i-5bnn", + info: 'https://data.cambridgema.gov/Public-Works/Street-Trees/ni4i-5bnn', broken: true, download: - "https://data.cambridgema.gov/api/views/q83f-7quz/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.cambridgema.gov/api/views/q83f-7quz/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "CommonName", - scientific: "Scientific", - idReference: "TreeID", - dbh: "diameter", - updated: "last_edite", - planted: "PlantDate", + common: 'CommonName', + scientific: 'Scientific', + idReference: 'TreeID', + dbh: 'diameter', + updated: 'last_edite', + planted: 'PlantDate', // health: (x) => String(x.TreeCondit).replace(/ \\(.*/, ""), }, }, @@ -466,38 +466,38 @@ export default [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Berkeley", - short: "Berkeley", - long: "Berkeley", - idName: "berkeley", - main: "berkeley", + country: 'United States of America', + state: 'CA', + city: 'Berkeley', + short: 'Berkeley', + long: 'Berkeley', + idSourceName: 'berkeley', + main: 'berkeley', center: null, latitude: null, longitude: null, - info: "https://data.cityofberkeley.info/Natural-Resources/City-Trees/9t35-jmin", + info: 'https://data.cityofberkeley.info/Natural-Resources/City-Trees/9t35-jmin', broken: false, download: - "https://data.cityofberkeley.info/api/views/x39z-ushg/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.cityofberkeley.info/api/views/x39z-ushg/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, - email: "trees@cityofberkeley.info", - phone: "5109816660", - contact: "City of Berkeley Department of Parks, Recreation & Waterfront", + email: 'trees@cityofberkeley.info', + phone: '5109816660', + contact: 'City of Berkeley Department of Parks, Recreation & Waterfront', crosswalk: { - common: "common_nam", - idReference: "siteid", - scientific: "scientific_name", - species: "species", - height: "height_ft", - spread: "spread_ft", - dbh: "dbh_in", - location: "location", - note: "note", - health: "condition", + common: 'common_nam', + idReference: 'siteid', + scientific: 'scientific_name', + species: 'species', + height: 'height_ft', + spread: 'spread_ft', + dbh: 'dbh_in', + location: 'location', + note: 'note', + health: 'condition', address: (x) => `${x.strt_num} ${x.strt_name}`, }, }, @@ -505,301 +505,302 @@ export default [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "PA", - city: "Pittsburgh", - short: "Pittsburgh", - long: "Pittsburgh", - idName: "pittsburgh", - main: "pittsburgh", + country: 'United States of America', + state: 'PA', + city: 'Pittsburgh', + short: 'Pittsburgh', + long: 'Pittsburgh', + idSourceName: 'pittsburgh', + main: 'pittsburgh', center: null, latitude: null, longitude: null, - info: "https://data.wprdc.org/dataset/city-trees", + info: 'https://data.wprdc.org/dataset/city-trees', broken: false, download: - "https://data.wprdc.org/dataset/9ce31f01-1dfa-4a14-9969-a5c5507a4b40/resource/d876927a-d3da-44d1-82e1-24310cdb7baf/download/trees_img.geojson", - format: "geojson", + 'https://data.wprdc.org/dataset/9ce31f01-1dfa-4a14-9969-a5c5507a4b40/resource/d876927a-d3da-44d1-82e1-24310cdb7baf/download/trees_img.geojson', + format: 'geojson', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "common_name", - idReference: "id", - scientific: "scientific_name", - height: "height", - health: "condition", + common: 'common_name', + idReference: 'id', + scientific: 'scientific_name', + height: 'height', + health: 'condition', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "OH", - city: "Colombus", - short: "Colombus", - long: "Colombus", - idName: "colombus", - main: "colombus", + country: 'United States of America', + state: 'OH', + city: 'Colombus', + short: 'Colombus', + long: 'Colombus', + idSourceName: 'colombus', + main: 'colombus', center: null, latitude: null, longitude: null, - info: "http://opendata.columbus.gov/datasets/public-owned-trees", + info: 'http://opendata.columbus.gov/datasets/public-owned-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/674e4a358e8042f69a734f229a93823c_1.zip?outSR=%7B%22wkt%22%3A%22PROJCS%5B%5C%22Ohio%203402%2C%20Southern%20Zone%20(1983%2C%20US%20Survey%20feet)%5C%22%2CGEOGCS%5B%5C%22NAD%2083%20(Continental%20US)%5C%22%2CDATUM%5B%5C%22NAD%2083%20(Continental%20US)%5C%22%2CSPHEROID%5B%5C%22GRS%2080%5C%22%2C6378137.0%2C298.257222101%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Lambert_Conformal_Conic%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C1968500.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C-82.5%5D%2CPARAMETER%5B%5C%22Standard_Parallel_1%5C%22%2C38.7333333333%5D%2CPARAMETER%5B%5C%22Standard_Parallel_2%5C%22%2C40.0333333333%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C38.0%5D%2CUNIT%5B%5C%22U.S.%20Foot%5C%22%2C0.3048006096012%5D%5D%22%7D", - format: "zip", - filename: "Public_Owned_Trees.shp", + 'https://opendata.arcgis.com/datasets/674e4a358e8042f69a734f229a93823c_1.zip?outSR=%7B%22wkt%22%3A%22PROJCS%5B%5C%22Ohio%203402%2C%20Southern%20Zone%20(1983%2C%20US%20Survey%20feet)%5C%22%2CGEOGCS%5B%5C%22NAD%2083%20(Continental%20US)%5C%22%2CDATUM%5B%5C%22NAD%2083%20(Continental%20US)%5C%22%2CSPHEROID%5B%5C%22GRS%2080%5C%22%2C6378137.0%2C298.257222101%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Lambert_Conformal_Conic%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C1968500.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C-82.5%5D%2CPARAMETER%5B%5C%22Standard_Parallel_1%5C%22%2C38.7333333333%5D%2CPARAMETER%5B%5C%22Standard_Parallel_2%5C%22%2C40.0333333333%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C38.0%5D%2CUNIT%5B%5C%22U.S.%20Foot%5C%22%2C0.3048006096012%5D%5D%22%7D', + format: 'zip', + filename: 'Public_Owned_Trees.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "OBJECTID", - dbh: "DIAM_BREAS", - updated: "INSPECTION", - health: "CONDITION1", - age: "LIFE_STAGE", - common: "SP_CODE", - scientific: "SP_NAME", - note: "STR_NAME", + idReference: 'OBJECTID', + dbh: 'DIAM_BREAS', + updated: 'INSPECTION', + health: 'CONDITION1', + age: 'LIFE_STAGE', + common: 'SP_CODE', + scientific: 'SP_NAME', + note: 'STR_NAME', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "TX", - city: "Austin", - short: "Austin", - long: "Austin", - idName: "austin", - main: "austin", + country: 'United States of America', + state: 'TX', + city: 'Austin', + short: 'Austin', + long: 'Austin', + idSourceName: 'austin', + main: 'austin', center: null, latitude: null, longitude: null, - info: "https://catalog.data.gov/dataset/downtown-tree-inventory-2013", + info: 'https://catalog.data.gov/dataset/downtown-tree-inventory-2013', broken: false, download: - "https://data.austintexas.gov/api/views/7aq7-a66u/rows.csv?accessType=DOWNLOAD", - format: "csv", + 'https://data.austintexas.gov/api/views/7aq7-a66u/rows.csv?accessType=DOWNLOAD', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "SPECIES", - common: "COM_NAME", - dbh: "DBH", + scientific: 'SPECIES', + common: 'COM_NAME', + dbh: 'DBH', height: 'HEIGHT', - health: "CONDITION", - location: "LAND_TYPE", + health: 'CONDITION', + location: 'LAND_TYPE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NY", - city: "Ithica", - short: "Cornell University", - long: "Cornell University", - idName: "cornell", - main: "cornell", + country: 'United States of America', + state: 'NY', + city: 'Ithica', + short: 'Cornell University', + long: 'Cornell University', + idSourceName: 'cornell', + main: 'cornell', center: null, latitude: null, longitude: null, - info: "https://cugir.library.cornell.edu/catalog/cugir-008025", + info: 'https://cugir.library.cornell.edu/catalog/cugir-008025', broken: false, - download: "https://cugir-data.s3.amazonaws.com/00/80/25/cugir-008025.zip", - format: "zip", - filename: "cugir-008025/CornellTree2009.shp", + download: 'https://cugir-data.s3.amazonaws.com/00/80/25/cugir-008025.zip', + format: 'zip', + filename: 'cugir-008025/CornellTree2009.shp', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "Botanic", - common: "Common", + scientific: 'Botanic', + common: 'Common', dbh: 'DBH', - note: "Comment", - updated: "SurveyDate", + note: 'Comment', + updated: 'SurveyDate', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NC", - city: "Cary", - short: "Cary", - long: "Cary", - idName: "cary", - main: "cary", + country: 'United States of America', + state: 'NC', + city: 'Cary', + short: 'Cary', + long: 'Cary', + idSourceName: 'cary', + main: 'cary', center: null, latitude: null, longitude: null, - info: "https://data.townofcary.org/pages/homepage/", + info: 'https://data.townofcary.org/pages/homepage/', broken: true, - broken_reason: "Broken link, old data source does not have species and common fields. Requires outreach.", + broken_reason: + 'Broken link, old data source does not have species and common fields. Requires outreach.', download: - "https://data.townofcary.org/api/v2/catalog/datasets/cary-trees/exports/csv", - format: "csv", + 'https://data.townofcary.org/api/v2/catalog/datasets/cary-trees/exports/csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - updated: "editdate", - common: "name", - note: "description", + updated: 'editdate', + common: 'name', + note: 'description', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NY", - city: "Rochester", - short: "Rochester", - long: "Rochester", - idName: "rochester", - main: "rochester", + country: 'United States of America', + state: 'NY', + city: 'Rochester', + short: 'Rochester', + long: 'Rochester', + idSourceName: 'rochester', + main: 'rochester', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/RochesterNY::trees-open-data", + info: 'http://hub.arcgis.com/datasets/RochesterNY::trees-open-data', broken: true, download: - "https://opendata.arcgis.com/datasets/4c209944e2984b4a908a14b0cbe48075_0.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/4c209944e2984b4a908a14b0cbe48075_0.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - note: "TREE_NAME", - health: "COND", + note: 'TREE_NAME', + health: 'COND', dbh: 'DBH', - idReference: "TREE_NUMBE", - note: "NOTES", + idReference: 'TREE_NUMBE', + note: 'NOTES', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "WA", - city: "Seattle", - short: "Seattle", - long: "Seattle", - idName: "seattle", - main: "seattle", + country: 'United States of America', + state: 'WA', + city: 'Seattle', + short: 'Seattle', + long: 'Seattle', + idSourceName: 'seattle', + main: 'seattle', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/SeattleCityGIS::trees", + info: 'http://hub.arcgis.com/datasets/SeattleCityGIS::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/0b8c124ace214943ab0379623937eccb_6.zip", - format: "zip", + 'https://opendata.arcgis.com/datasets/0b8c124ace214943ab0379623937eccb_6.zip', + format: 'zip', filename: null, gdalOptions: null, license: null, - email: "treesforseattle@seattle.gov", - phone: "2066848733", - contact: "Trees for Seattle", + email: 'treesforseattle@seattle.gov', + phone: '2066848733', + contact: 'Trees for Seattle', crosswalk: { - idReference: "UNITID", - health: "CONDITION", - owner: "OWNERSHIP", - updated: "LAST_VERIF", - planted: "PLANTED_DA", - common: "COMMON_NA", - scientific: "SCIENTIFIC", - address: "UNITDESC", - common: "BOTANICAL_", + idReference: 'UNITID', + health: 'CONDITION', + owner: 'OWNERSHIP', + updated: 'LAST_VERIF', + planted: 'PLANTED_DA', + common: 'COMMON_NA', + scientific: 'SCIENTIFIC', + address: 'UNITDESC', + common: 'BOTANICAL_', height: 'TREEHEIGHT', dbh: 'DIAM', - condition: (x) => ["Very poor", "Poor", "Fair", "Good", "Excellent"][x.CONDITION - 1], - owner: "OWNERSHIP", - updated:"LAST_VERIF", - + condition: (x) => + ['Very poor', 'Poor', 'Fair', 'Good', 'Excellent'][x.CONDITION - 1], + owner: 'OWNERSHIP', + updated: 'LAST_VERIF', }, -}, + }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Cupertino", - short: "Cupertino", - long: "Cupertino", - idName: "cupertino", - main: "cupertino", + country: 'United States of America', + state: 'CA', + city: 'Cupertino', + short: 'Cupertino', + long: 'Cupertino', + idSourceName: 'cupertino', + main: 'cupertino', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/Cupertino::trees", + info: 'http://hub.arcgis.com/datasets/Cupertino::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/caa50a924b7d4b5ba8e8a4cbfd0d7f13_29.csv", - format: "csv", + 'https://opendata.arcgis.com/datasets/caa50a924b7d4b5ba8e8a4cbfd0d7f13_29.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - idReference: "AssetID", - updated: "UpdateDate", - scientific: "Species", - common: "SpeciesCommonName", + idReference: 'AssetID', + updated: 'UpdateDate', + scientific: 'Species', + common: 'SpeciesCommonName', dbh: 'DiameterBreastHeight', height: 'Height', - location: "LocationType", - health: "Condition", + location: 'LocationType', + health: 'Condition', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Oxnard", - short: "Oxnard", - long: "City of Oxnard", - idName: "oxnard", - main: "oxnard", + country: 'United States of America', + state: 'CA', + city: 'Oxnard', + short: 'Oxnard', + long: 'City of Oxnard', + idSourceName: 'oxnard', + main: 'oxnard', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/a5aa2d1dfd344ef79d61507d33cdbc02_1", + info: 'http://hub.arcgis.com/datasets/a5aa2d1dfd344ef79d61507d33cdbc02_1', broken: false, download: - "https://opendata.arcgis.com/datasets/a5aa2d1dfd344ef79d61507d33cdbc02_1.csv", - format: "csv", + 'https://opendata.arcgis.com/datasets/a5aa2d1dfd344ef79d61507d33cdbc02_1.csv', + format: 'csv', filename: null, gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - scientific: "BOTANICALN", - common: "COMMONNAME", + scientific: 'BOTANICALN', + common: 'COMMONNAME', dbh: 'DBH', height: 'HEIGHT', }, @@ -808,20 +809,20 @@ export default [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NC", - city: "Wake Forest", - short: "Wake Forest", - long: "Town of Wake Forest", - idName: "wake_forest", - main: "wake_forest", + country: 'United States of America', + state: 'NC', + city: 'Wake Forest', + short: 'Wake Forest', + long: 'Town of Wake Forest', + idSourceName: 'wake_forest', + main: 'wake_forest', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/wakeforestnc::trees", + info: 'http://hub.arcgis.com/datasets/wakeforestnc::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/ba930858554a43cca1be2f06a44d2449_0.csv", + 'https://opendata.arcgis.com/datasets/ba930858554a43cca1be2f06a44d2449_0.csv', format: null, filename: null, gdalOptions: null, @@ -829,39 +830,39 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "LatinName", - common: "CommonName", - genus: "Genus", - health: "conditionO", - scientific: "SPECIES_LA", - common: "SPECIES_CO", - address: "Address", + scientific: 'LatinName', + common: 'CommonName', + genus: 'Genus', + health: 'conditionO', + scientific: 'SPECIES_LA', + common: 'SPECIES_CO', + address: 'Address', dbh: 'DBHRange', height: 'TreeHeight', - location: "Locationon", - notes: "Maintenac", - idReference: "TreeID", - count: "TreeNumber", + location: 'Locationon', + notes: 'Maintenac', + idReference: 'TreeID', + count: 'TreeNumber', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CO", - city: "Aurora", - short: "Aurora", - long: "Aurora", - idName: "aurora", - main: "aurora", + country: 'United States of America', + state: 'CO', + city: 'Aurora', + short: 'Aurora', + long: 'Aurora', + idSourceName: 'aurora', + main: 'aurora', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/AuroraCo::trees-city", + info: 'http://hub.arcgis.com/datasets/AuroraCo::trees-city', broken: false, download: - "https://opendata.arcgis.com/datasets/1dbb32bf07ca421db4f01dac6beb812d_85.csv", + 'https://opendata.arcgis.com/datasets/1dbb32bf07ca421db4f01dac6beb812d_85.csv', format: null, filename: null, gdalOptions: null, @@ -869,32 +870,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "TREE_ID_NO", - common: "SPECIES", - scientific: "SPECIES", + idReference: 'TREE_ID_NO', + common: 'SPECIES', + scientific: 'SPECIES', dbh: 'DIAMETER', - health: "CONDITION", - updated: "ACTIVITY_DATE", + health: 'CONDITION', + updated: 'ACTIVITY_DATE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Bakersfield", - short: "Bakersfield", - long: "Bakersfield", - idName: "bakersfield", - main: "bakersfield", + country: 'United States of America', + state: 'CA', + city: 'Bakersfield', + short: 'Bakersfield', + long: 'Bakersfield', + idSourceName: 'bakersfield', + main: 'bakersfield', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/cob::city-trees?geometry=-129.468%2C33.767%2C-108.539%2C36.903", + info: 'http://hub.arcgis.com/datasets/cob::city-trees?geometry=-129.468%2C33.767%2C-108.539%2C36.903', broken: true, download: - "https://opendata.arcgis.com/datasets/b7a17f7ecb564be4b26ced85016ed1da_0.csv", + 'https://opendata.arcgis.com/datasets/b7a17f7ecb564be4b26ced85016ed1da_0.csv', format: null, filename: null, gdalOptions: null, @@ -902,35 +903,35 @@ export default [ email: null, contact: null, crosswalk: { - updated: "DATE_", - scientific: "BOTANICAL_", - common: "COMMON_N", + updated: 'DATE_', + scientific: 'BOTANICAL_', + common: 'COMMON_N', dbh: (x) => tree[x], height: (x) => tree[x], crown: (x) => tree[x], - health: "RATING", - note: "COMMENT", - idReference: "TREE_ID", + health: 'RATING', + note: 'COMMENT', + idReference: 'TREE_ID', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NV", - city: "Las Vegas", - short: "Las Vegas", - long: "Las Vegas", - idName: "las_vegas", - main: "las_vegas", + country: 'United States of America', + state: 'NV', + city: 'Las Vegas', + short: 'Las Vegas', + long: 'Las Vegas', + idSourceName: 'las_vegas', + main: 'las_vegas', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/lasvegas::trees", + info: 'http://hub.arcgis.com/datasets/lasvegas::trees', broken: true, download: - "https://opendata.arcgis.com/datasets/23364bb40f2640ff841ba4a8680b6421_0.csv", + 'https://opendata.arcgis.com/datasets/23364bb40f2640ff841ba4a8680b6421_0.csv', format: null, filename: null, gdalOptions: null, @@ -938,34 +939,34 @@ export default [ email: null, contact: null, crosswalk: { - location: "LOC_TYPE", - scientific: "BOTANICAL", - common: "COMMON", - dbh: "DBH", - spread: "WIDTH", - height: "HEIGHT", - health: "COND", - note: "NOTES", + location: 'LOC_TYPE', + scientific: 'BOTANICAL', + common: 'COMMON', + dbh: 'DBH', + spread: 'WIDTH', + height: 'HEIGHT', + health: 'COND', + note: 'NOTES', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Three Rivers", - short: "Three Rivers", - long: "Three Rivers Park District", - idName: "three_rivers", - main: "three_rivers", + country: 'United States of America', + state: 'CA', + city: 'Three Rivers', + short: 'Three Rivers', + long: 'Three Rivers Park District', + idSourceName: 'three_rivers', + main: 'three_rivers', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/trpd::managed-trees-open-data?geometry=-96.405%2C44.562%2C-90.563%2C45.243", + info: 'http://hub.arcgis.com/datasets/trpd::managed-trees-open-data?geometry=-96.405%2C44.562%2C-90.563%2C45.243', broken: false, download: - "https://opendata.arcgis.com/datasets/ffbb9401412141a79c7164ade8d2ee2d_0.csv", + 'https://opendata.arcgis.com/datasets/ffbb9401412141a79c7164ade8d2ee2d_0.csv', format: null, filename: null, gdalOptions: null, @@ -973,31 +974,31 @@ export default [ email: null, contact: null, crosswalk: { - common: "CommonName", - scientific: "ScientificName", - planted: "YearPlanted", - idReference: "CartedID", + common: 'CommonName', + scientific: 'ScientificName', + planted: 'YearPlanted', + idReference: 'CartedID', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "TX", - city: "Richardson", - short: "Richardson", - long: "Richardson", - id: "richardson", - idName: "richardson", - main: "richardson", + country: 'United States of America', + state: 'TX', + city: 'Richardson', + short: 'Richardson', + long: 'Richardson', + id: 'richardson', + idSourceName: 'richardson', + main: 'richardson', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/richardson::trees", + info: 'http://hub.arcgis.com/datasets/richardson::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/cd10a9e85354488dbdb697ce97ccb064_0.csv", + 'https://opendata.arcgis.com/datasets/cd10a9e85354488dbdb697ce97ccb064_0.csv', format: null, filename: null, gdalOptions: null, @@ -1005,38 +1006,38 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "FACILITYID", - common: "NAME", - genus: "GENUS", - species: "SPECIES", - scientific: "SPECIES", - age: "TREEAGE", - dbh: "DIAMETER", - height: "HEIGHT", - owner: "OWNEDBY", - structure: "TRUNKSTRCT", - note: "COMMENTS", - updated: "last_edited_date", + idReference: 'FACILITYID', + common: 'NAME', + genus: 'GENUS', + species: 'SPECIES', + scientific: 'SPECIES', + age: 'TREEAGE', + dbh: 'DIAMETER', + height: 'HEIGHT', + owner: 'OWNEDBY', + structure: 'TRUNKSTRCT', + note: 'COMMENTS', + updated: 'last_edited_date', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "PA", - city: "Allentown", - short: "Allentown", - long: "City of Allentown", - idName: "allentown", - main: "allentown", + country: 'United States of America', + state: 'PA', + city: 'Allentown', + short: 'Allentown', + long: 'City of Allentown', + idSourceName: 'allentown', + main: 'allentown', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/AllentownPA::city-trees", + info: 'http://hub.arcgis.com/datasets/AllentownPA::city-trees', broken: true, download: - "https://opendata.arcgis.com/datasets/4383052db35e4f93bbd83e5bde468a00_0.csv", + 'https://opendata.arcgis.com/datasets/4383052db35e4f93bbd83e5bde468a00_0.csv', format: null, filename: null, gdalOptions: null, @@ -1044,31 +1045,31 @@ export default [ email: null, contact: null, crosswalk: { - common: "TR_COMMON", - scientific: "TR_GENUS", + common: 'TR_COMMON', + scientific: 'TR_GENUS', // dbh: 'DBH',, - health: "CONDITION", - updated: "INPUT_DATE", + health: 'CONDITION', + updated: 'INPUT_DATE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "SD", - city: "Sioux Falls", - short: "Sioux Falls", - long: "Sioux Falls", - idName: "sioux_falls", - main: "sioux_falls", + country: 'United States of America', + state: 'SD', + city: 'Sioux Falls', + short: 'Sioux Falls', + long: 'Sioux Falls', + idSourceName: 'sioux_falls', + main: 'sioux_falls', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/cityofsfgis::trees", + info: 'http://hub.arcgis.com/datasets/cityofsfgis::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/c880d62ae5fb4652b1f8e6cbca244107_10.csv", + 'https://opendata.arcgis.com/datasets/c880d62ae5fb4652b1f8e6cbca244107_10.csv', format: null, filename: null, gdalOptions: null, @@ -1076,37 +1077,37 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "AssetID", - location: "Location", - common: "FullName", - scientific: "Species", - family: "Family", - spread: "Spread", - height: "Height", - dbh: "DBH", - health: "Condition", - note: "SpecialComments", - updated: "last_edited_date", + idReference: 'AssetID', + location: 'Location', + common: 'FullName', + scientific: 'Species', + family: 'Family', + spread: 'Spread', + height: 'Height', + dbh: 'DBH', + health: 'Condition', + note: 'SpecialComments', + updated: 'last_edited_date', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "MA", - city: "Amherst", - short: "Amherst", - long: "Amherst", - idName: "amherst", - main: "amherst", + country: 'United States of America', + state: 'MA', + city: 'Amherst', + short: 'Amherst', + long: 'Amherst', + idSourceName: 'amherst', + main: 'amherst', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/AmherstMA::street-trees", + info: 'http://hub.arcgis.com/datasets/AmherstMA::street-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/b4a74ab24f114f22b438a19e589f6f76_0.zip", + 'https://opendata.arcgis.com/datasets/b4a74ab24f114f22b438a19e589f6f76_0.zip', format: null, filename: null, gdalOptions: null, @@ -1114,31 +1115,31 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "TreeID", - updated: "LastEdit", - common: "Species", - scientific: "Species", - note: "Notes", + idReference: 'TreeID', + updated: 'LastEdit', + common: 'Species', + scientific: 'Species', + note: 'Notes', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CO", - city: "Colorado Springs", - short: "Colorado Springs", - long: "Colorado Springs", - idName: "colorado_springs", - main: "colorado_springs", + country: 'United States of America', + state: 'CO', + city: 'Colorado Springs', + short: 'Colorado Springs', + long: 'Colorado Springs', + idSourceName: 'colorado_springs', + main: 'colorado_springs', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/coloradosprings::trees/data?geometry=-106.259%2C38.699%2C-103.338%2C39.073", + info: 'http://hub.arcgis.com/datasets/coloradosprings::trees/data?geometry=-106.259%2C38.699%2C-103.338%2C39.073', broken: true, download: - "https://opendata.arcgis.com/datasets/91758518026d4b1089f2180602399d73_0.csv", + 'https://opendata.arcgis.com/datasets/91758518026d4b1089f2180602399d73_0.csv', format: null, filename: null, gdalOptions: null, @@ -1146,29 +1147,29 @@ export default [ email: null, contact: null, crosswalk: { - common: "Common_Name", - scientific: "Scientific_Name", - dbh: "DBH", + common: 'Common_Name', + scientific: 'Scientific_Name', + dbh: 'DBH', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "OH", - city: "Marysville", - short: "Marysville", - long: "City of Marysville", - idName: "marysville", - main: "marysville", + country: 'United States of America', + state: 'OH', + city: 'Marysville', + short: 'Marysville', + long: 'City of Marysville', + idSourceName: 'marysville', + main: 'marysville', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/Marysville::individual-trees-sites", + info: 'http://hub.arcgis.com/datasets/Marysville::individual-trees-sites', broken: true, download: - "https://opendata.arcgis.com/datasets/44b6c7a1307d48ff99d2034b5695c149_0.csv", + 'https://opendata.arcgis.com/datasets/44b6c7a1307d48ff99d2034b5695c149_0.csv', format: null, filename: null, gdalOptions: null, @@ -1176,37 +1177,37 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "treeid", - common: "common", - genus: "genus", - species: "sp_epith", - scientific: "sp_epith", - variety: "variety", - location: "type", + idReference: 'treeid', + common: 'common', + genus: 'genus', + species: 'sp_epith', + scientific: 'sp_epith', + variety: 'variety', + location: 'type', dbh: 'DBH', height: 'Height', - health: "trcond", - updated: "last_edited_date", + health: 'trcond', + updated: 'last_edited_date', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "MO", - city: "Springfield", - short: "Springfield", - long: "City of Springfield", - idName: "springfield", - main: "springfield", + country: 'United States of America', + state: 'MO', + city: 'Springfield', + short: 'Springfield', + long: 'City of Springfield', + idSourceName: 'springfield', + main: 'springfield', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/COSMO::tree-inventory", + info: 'http://hub.arcgis.com/datasets/COSMO::tree-inventory', broken: false, download: - "https://opendata.arcgis.com/datasets/7a890a7b54d6438f80bd60e5e34c8e62_34.csv", + 'https://opendata.arcgis.com/datasets/7a890a7b54d6438f80bd60e5e34c8e62_34.csv', format: null, filename: null, gdalOptions: null, @@ -1214,32 +1215,32 @@ export default [ email: null, contact: null, crosswalk: { - health: "Condition", - common: "TreeType", - scientific: "SciName", - height: "Height", + health: 'Condition', + common: 'TreeType', + scientific: 'SciName', + height: 'Height', dbh: 'DBH', - spread: "Spread", + spread: 'Spread', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Anaheim", - short: "Anaheim", - long: "Anaheim", - idName: "anaheim", - main: "anaheim", + country: 'United States of America', + state: 'CA', + city: 'Anaheim', + short: 'Anaheim', + long: 'Anaheim', + idSourceName: 'anaheim', + main: 'anaheim', center: null, latitude: null, longitude: null, - info: "https://data-anaheim.opendata.arcgis.com/datasets/city-trees", + info: 'https://data-anaheim.opendata.arcgis.com/datasets/city-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/0f96c6cf73904424bc9ce14197990201_41.csv", + 'https://opendata.arcgis.com/datasets/0f96c6cf73904424bc9ce14197990201_41.csv', format: null, filename: null, gdalOptions: null, @@ -1247,30 +1248,30 @@ export default [ email: null, contact: null, crosswalk: { - common: "COMMONNAME", - scientific: "BOTANICALNAME", - dbh: "DBH", - height: "HEIGHT", + common: 'COMMONNAME', + scientific: 'BOTANICALNAME', + dbh: 'DBH', + height: 'HEIGHT', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NC", - city: "Charlottesville", - short: "Charlottesville", - long: "Charlottesville", - idName: "charlottesville", - main: "charlottesville", + country: 'United States of America', + state: 'NC', + city: 'Charlottesville', + short: 'Charlottesville', + long: 'Charlottesville', + idSourceName: 'charlottesville', + main: 'charlottesville', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/charlottesville::tree-inventory-point", + info: 'http://hub.arcgis.com/datasets/charlottesville::tree-inventory-point', broken: false, download: - "https://opendata.arcgis.com/datasets/e7c856379492408e9543a25d684b8311_79.csv", + 'https://opendata.arcgis.com/datasets/e7c856379492408e9543a25d684b8311_79.csv', format: null, filename: null, gdalOptions: null, @@ -1278,33 +1279,33 @@ export default [ email: null, contact: null, crosswalk: { - planted: "Install_Date", - common: "Common_Name", - scientific: "Scientific_Name", - owner: "Agency", - genus: "Genus", - species: "Species", - updated: "last_edited_date", + planted: 'Install_Date', + common: 'Common_Name', + scientific: 'Scientific_Name', + owner: 'Agency', + genus: 'Genus', + species: 'Species', + updated: 'last_edited_date', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "PA", - city: "West Chester", - short: "West Chester", - long: "West Chester Borough", - idName: "west_chester", - main: "west_chester", + country: 'United States of America', + state: 'PA', + city: 'West Chester', + short: 'West Chester', + long: 'West Chester Borough', + idSourceName: 'west_chester', + main: 'west_chester', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/WCUPAGIS::borotrees-1?geometry=-87.273%2C38.460%2C-63.905%2C41.408", + info: 'http://hub.arcgis.com/datasets/WCUPAGIS::borotrees-1?geometry=-87.273%2C38.460%2C-63.905%2C41.408', broken: false, download: - "https://opendata.arcgis.com/datasets/7fdf2b5d2b674e99b33e8d77d052e30c_0.csv", + 'https://opendata.arcgis.com/datasets/7fdf2b5d2b674e99b33e8d77d052e30c_0.csv', format: null, filename: null, gdalOptions: null, @@ -1313,32 +1314,32 @@ export default [ contact: null, crosswalk: { dbh: 'DBH', - idReference: "ID_1", - genus: "Genus", - species: "Species_1", - common: "CommonName", - scientific: "Species_1", - health: "Condition_1", + idReference: 'ID_1', + genus: 'Genus', + species: 'Species_1', + common: 'CommonName', + scientific: 'Species_1', + health: 'Condition_1', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CO", - city: "Durango", - short: "Durango", - long: "Durango", - idName: "durango", - main: "durango", + country: 'United States of America', + state: 'CO', + city: 'Durango', + short: 'Durango', + long: 'Durango', + idSourceName: 'durango', + main: 'durango', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/CityOfDurango::city-trees", + info: 'http://hub.arcgis.com/datasets/CityOfDurango::city-trees', broken: true, download: - "https://opendata.arcgis.com/datasets/3e3e00d6224b43ee9acc514244fffdb9_0.csv", + 'https://opendata.arcgis.com/datasets/3e3e00d6224b43ee9acc514244fffdb9_0.csv', format: null, filename: null, gdalOptions: null, @@ -1346,36 +1347,36 @@ export default [ email: null, contact: null, crosswalk: { - planted: "DATEID", - idReference: "ID", - common: "COMMON", - genus: "GENUS", - species: "SPECIES", - scientific: "SPECIES", - variety: "CULTIVAR", + planted: 'DATEID', + idReference: 'ID', + common: 'COMMON', + genus: 'GENUS', + species: 'SPECIES', + scientific: 'SPECIES', + variety: 'CULTIVAR', dbh: 'DBH', - health: "CONDITION", - updated: "LASTMODDATE", + health: 'CONDITION', + updated: 'LASTMODDATE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "ME", - city: "Washington", - short: "Washington", - long: "Washington County", - idName: "washington", - main: "washington", + country: 'United States of America', + state: 'ME', + city: 'Washington', + short: 'Washington', + long: 'Washington County', + idSourceName: 'washington', + main: 'washington', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/WCMN::tree-inventory", + info: 'http://hub.arcgis.com/datasets/WCMN::tree-inventory', broken: false, download: - "https://opendata.arcgis.com/datasets/ae14fc063c1e44a995e750805b1c864b_0.csv", + 'https://opendata.arcgis.com/datasets/ae14fc063c1e44a995e750805b1c864b_0.csv', format: null, filename: null, gdalOptions: null, @@ -1383,30 +1384,30 @@ export default [ email: null, contact: null, crosswalk: { - common: "Tree_Type", - health: "Health", - note: "Comments", - idReference: "OBJECTID", + common: 'Tree_Type', + health: 'Health', + note: 'Comments', + idReference: 'OBJECTID', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "OH", - city: "Westerville", - short: "Westerville", - long: "Westerville", - idName: "westerville", - main: "westerville", + country: 'United States of America', + state: 'OH', + city: 'Westerville', + short: 'Westerville', + long: 'Westerville', + idSourceName: 'westerville', + main: 'westerville', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/Westerville::comm-parks-rec-trees/data?geometry=-83.315%2C40.085%2C-82.585%2C40.177", + info: 'http://hub.arcgis.com/datasets/Westerville::comm-parks-rec-trees/data?geometry=-83.315%2C40.085%2C-82.585%2C40.177', broken: false, download: - "https://opendata.arcgis.com/datasets/137785bc78da47b4a2159f9c76218d55_0.csv", + 'https://opendata.arcgis.com/datasets/137785bc78da47b4a2159f9c76218d55_0.csv', format: null, filename: null, gdalOptions: null, @@ -1415,30 +1416,30 @@ export default [ contact: null, crosswalk: { dbh: 'DBH', - common: "COMMON_NAME", - location: "TREE_TYPE", - health: "CONDITION", - scientific: "SCIENTIFIC", + common: 'COMMON_NAME', + location: 'TREE_TYPE', + health: 'CONDITION', + scientific: 'SCIENTIFIC', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "FL", - city: "St Augustine", - short: "St Augustine", - long: "St Augustine", - idName: "st_augustine", - main: "st_augustine", + country: 'United States of America', + state: 'FL', + city: 'St Augustine', + short: 'St Augustine', + long: 'St Augustine', + idSourceName: 'st_augustine', + main: 'st_augustine', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/STAUG::trees?geometry=-93.005%2C28.223%2C-69.637%2C31.556", + info: 'http://hub.arcgis.com/datasets/STAUG::trees?geometry=-93.005%2C28.223%2C-69.637%2C31.556', broken: false, download: - "https://opendata.arcgis.com/datasets/8372c7d0f5a24764bd10f62f0b2f1b65_0.csv", + 'https://opendata.arcgis.com/datasets/8372c7d0f5a24764bd10f62f0b2f1b65_0.csv', format: null, filename: null, gdalOptions: null, @@ -1446,30 +1447,30 @@ export default [ email: null, contact: null, crosswalk: { - updated: "INSPECT_DT", - note: "NOTES", - scientific: "SPP", - dbh: "DBH", + updated: 'INSPECT_DT', + note: 'NOTES', + scientific: 'SPP', + dbh: 'DBH', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "FL", - city: "Weston", - short: "Weston", - long: "Weston", - idName: "weston", - main: "weston", + country: 'United States of America', + state: 'FL', + city: 'Weston', + short: 'Weston', + long: 'Weston', + idSourceName: 'weston', + main: 'weston', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/westonfl::trees", + info: 'http://hub.arcgis.com/datasets/westonfl::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/c95f89a4db39414a89f5c29bcb6fb48d_6.csv", + 'https://opendata.arcgis.com/datasets/c95f89a4db39414a89f5c29bcb6fb48d_6.csv', format: null, filename: null, gdalOptions: null, @@ -1477,37 +1478,37 @@ export default [ email: null, contact: null, crosswalk: { - common: "NAME", - genus: "GENUS", - species: "SPECIES", - age: "TREEAGE", + common: 'NAME', + genus: 'GENUS', + species: 'SPECIES', + age: 'TREEAGE', dbh: 'DBH', height: 'Height', - health: "CONDITION", - owner: "OWNEDBY", - updated: "LASTUPDATE", - scientific: "BOTNAME", - family: "FAMILY", + health: 'CONDITION', + owner: 'OWNEDBY', + updated: 'LASTUPDATE', + scientific: 'BOTNAME', + family: 'FAMILY', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Pacific Grove", - short: "Pacific Grove", - long: "Pacific Grove", - idName: "pacific_grove", - main: "pacific_grove", + country: 'United States of America', + state: 'CA', + city: 'Pacific Grove', + short: 'Pacific Grove', + long: 'Pacific Grove', + idSourceName: 'pacific_grove', + main: 'pacific_grove', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/CityPacificGrove::trees", + info: 'http://hub.arcgis.com/datasets/CityPacificGrove::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/87bcc6e824214422be859b3251350829_3.csv", + 'https://opendata.arcgis.com/datasets/87bcc6e824214422be859b3251350829_3.csv', format: null, filename: null, gdalOptions: null, @@ -1515,32 +1516,32 @@ export default [ email: null, contact: null, crosswalk: { - common: "Type", - scientific: "BOTANICAL", - variety: "CULTIVAR", + common: 'Type', + scientific: 'BOTANICAL', + variety: 'CULTIVAR', dbh: 'DBH', - condition: (x) => String(x.CONDITION).split(" - ")[0], - note: "NOTES", + condition: (x) => String(x.CONDITION).split(' - ')[0], + note: 'NOTES', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "MT", - city: "Bozeman", - short: "Bozeman", - long: "City of Bozeman", - idName: "bozeman", - main: "bozeman", + country: 'United States of America', + state: 'MT', + city: 'Bozeman', + short: 'Bozeman', + long: 'City of Bozeman', + idSourceName: 'bozeman', + main: 'bozeman', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/bozeman::trees", + info: 'http://hub.arcgis.com/datasets/bozeman::trees', broken: false, download: - "https://opendata.arcgis.com/datasets/ba0dea7927184014a8b84e64af5c7684_0.csv", + 'https://opendata.arcgis.com/datasets/ba0dea7927184014a8b84e64af5c7684_0.csv', format: null, filename: null, gdalOptions: null, @@ -1548,34 +1549,34 @@ export default [ email: null, contact: null, crosswalk: { - genus: "Genus", - species: "Species", - variety: "Cultivar", + genus: 'Genus', + species: 'Species', + variety: 'Cultivar', dbh: 'DBH', - health: "Condition", - updated: "last_edited_date", - common: "Common_Name", - idReference: "FacilityID", + health: 'Condition', + updated: 'last_edited_date', + common: 'Common_Name', + idReference: 'FacilityID', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "IL", - city: "Champaign", - short: "Champaign", - long: "Champaign", - idName: "champaign", - main: "champaign", + country: 'United States of America', + state: 'IL', + city: 'Champaign', + short: 'Champaign', + long: 'Champaign', + idSourceName: 'champaign', + main: 'champaign', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/cityofchampaign::city-owned-trees", + info: 'http://hub.arcgis.com/datasets/cityofchampaign::city-owned-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/979bbeefffea408e8f1cb7a397196c64_22.csv", + 'https://opendata.arcgis.com/datasets/979bbeefffea408e8f1cb7a397196c64_22.csv', format: null, filename: null, gdalOptions: null, @@ -1583,34 +1584,34 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "ID", - scientific: "SPP", - common: "COMMON", + idReference: 'ID', + scientific: 'SPP', + common: 'COMMON', dbh: 'DBH', - health: "COND", - updated: "INSPECT_DT", - note: "NOTES", - family: "FAMILY", + health: 'COND', + updated: 'INSPECT_DT', + note: 'NOTES', + family: 'FAMILY', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Placentia", - short: "Placentia", - long: "Placentia", - idName: "placentia", - main: "placentia", + country: 'United States of America', + state: 'CA', + city: 'Placentia', + short: 'Placentia', + long: 'Placentia', + idSourceName: 'placentia', + main: 'placentia', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/placentia::city-trees", + info: 'http://hub.arcgis.com/datasets/placentia::city-trees', broken: false, download: - "https://opendata.arcgis.com/datasets/8efcbe9c80ed42a29e6ad5483bd01c32_0.csv", + 'https://opendata.arcgis.com/datasets/8efcbe9c80ed42a29e6ad5483bd01c32_0.csv', format: null, filename: null, gdalOptions: null, @@ -1618,32 +1619,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "INVENTORYI", - scientific: "BOTANICALN", - common: "COMMONNAME", - dbh: "DBH", - height: "HEIGHT", - updated: "EditDate", + idReference: 'INVENTORYI', + scientific: 'BOTANICALN', + common: 'COMMONNAME', + dbh: 'DBH', + height: 'HEIGHT', + updated: 'EditDate', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "FL", - city: "Sarasota", - short: "Sarasota", - long: "Sarasota", - idName: "sarasota", - main: "sarasota", + country: 'United States of America', + state: 'FL', + city: 'Sarasota', + short: 'Sarasota', + long: 'Sarasota', + idSourceName: 'sarasota', + main: 'sarasota', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/sarasota::tree-inventory", + info: 'http://hub.arcgis.com/datasets/sarasota::tree-inventory', broken: true, download: - "https://opendata.arcgis.com/datasets/4deeb30f44bc4b60847cf43aed1a4670_0.csv", + 'https://opendata.arcgis.com/datasets/4deeb30f44bc4b60847cf43aed1a4670_0.csv', format: null, filename: null, gdalOptions: null, @@ -1651,33 +1652,33 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "Species", + scientific: 'Species', dbh: 'DBH', height: 'Height', - health: "Condition", - owner: "Ownership", - note: "Notes", - updated: "last_edited_date", + health: 'Condition', + owner: 'Ownership', + note: 'Notes', + updated: 'last_edited_date', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "MI", - city: "Ann Arbor", - short: "Nichols Arboretum", - long: "Nichols Arboretum", - idName: "nichols_arboretum", - main: "nichols_arboretum", + country: 'United States of America', + state: 'MI', + city: 'Ann Arbor', + short: 'Nichols Arboretum', + long: 'Nichols Arboretum', + idSourceName: 'nichols_arboretum', + main: 'nichols_arboretum', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/umich::nichols-arboretum-inventory-survey", + info: 'http://hub.arcgis.com/datasets/umich::nichols-arboretum-inventory-survey', broken: false, download: - "https://opendata.arcgis.com/datasets/febee55e7dac43298952af77c8f8d809_0.csv", + 'https://opendata.arcgis.com/datasets/febee55e7dac43298952af77c8f8d809_0.csv', format: null, filename: null, gdalOptions: null, @@ -1685,59 +1686,59 @@ export default [ email: null, contact: null, crosswalk: { - common: "COMMON", - scientific: "BOTANICAL", - variety: "CULTIVAR", + common: 'COMMON', + scientific: 'BOTANICAL', + variety: 'CULTIVAR', dbh: 'DBH', - health: "COND", - note: "NOTES", - updated: "DATE", + health: 'COND', + note: 'NOTES', + updated: 'DATE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "TX", - city: "Denton", - short: "UNT", - long: "University of North Texas", - idName: "unt", - main: "unt", + country: 'United States of America', + state: 'TX', + city: 'Denton', + short: 'UNT', + long: 'University of North Texas', + idSourceName: 'unt', + main: 'unt', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/untgis::tree", + info: 'http://hub.arcgis.com/datasets/untgis::tree', broken: true, download: - "https://opendata.arcgis.com/datasets/ee33bf4535cd47bbb1c5661d2333d834_0.csv", + 'https://opendata.arcgis.com/datasets/ee33bf4535cd47bbb1c5661d2333d834_0.csv', format: null, filename: null, gdalOptions: null, license: null, email: null, contact: null, - crosswalk: { note: "NOTES", common: "NAME_COMN", idReference: "UNT_ID" }, + crosswalk: { note: 'NOTES', common: 'NAME_COMN', idReference: 'UNT_ID' }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Escondido", - short: "Escondido", - long: "City of Escondido", - idName: "escondido", - main: "escondido", + country: 'United States of America', + state: 'CA', + city: 'Escondido', + short: 'Escondido', + long: 'City of Escondido', + idSourceName: 'escondido', + main: 'escondido', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/CityofEscondido::tree-inventory?geometry=-122.895%2C32.313%2C-111.211%2C33.923", + info: 'http://hub.arcgis.com/datasets/CityofEscondido::tree-inventory?geometry=-122.895%2C32.313%2C-111.211%2C33.923', broken: false, download: - "https://opendata.arcgis.com/datasets/ac9caf3c7a9847b78100cc8860ddf51a_0.csv", + 'https://opendata.arcgis.com/datasets/ac9caf3c7a9847b78100cc8860ddf51a_0.csv', format: null, filename: null, gdalOptions: null, @@ -1745,33 +1746,33 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "TREEID", - scientific: "BOTANICAL", - common: "COMMON", - dbh: "DBH_RANGE", + idReference: 'TREEID', + scientific: 'BOTANICAL', + common: 'COMMON', + dbh: 'DBH_RANGE', height: 'Height', - health: "CONDITION", - updated: "LAST_EDITED_DATE", + health: 'CONDITION', + updated: 'LAST_EDITED_DATE', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "TX", - city: "Wylie", - short: "Wylie", - long: "City of Wylie", - idName: "wylie", - main: "wylie", + country: 'United States of America', + state: 'TX', + city: 'Wylie', + short: 'Wylie', + long: 'City of Wylie', + idSourceName: 'wylie', + main: 'wylie', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/WylieTX::treesurvey", + info: 'http://hub.arcgis.com/datasets/WylieTX::treesurvey', broken: false, download: - "https://opendata.arcgis.com/datasets/82060fffb84045fdafbe2a56c989b353_0.csv", + 'https://opendata.arcgis.com/datasets/82060fffb84045fdafbe2a56c989b353_0.csv', format: null, filename: null, gdalOptions: null, @@ -1779,31 +1780,31 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "TK_ID", - common: "COMMON", + idReference: 'TK_ID', + common: 'COMMON', dbh: 'DBH', - health: "CONDITION", - updated: "INSPECT_DT", + health: 'CONDITION', + updated: 'INSPECT_DT', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "ME", - city: "Auburn", - short: "Auburn", - long: "Auburn", - idName: "auburn", - main: "auburn", + country: 'United States of America', + state: 'ME', + city: 'Auburn', + short: 'Auburn', + long: 'Auburn', + idSourceName: 'auburn', + main: 'auburn', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/AuburnME::treeinventory?geometry=-81.930%2C42.701%2C-58.562%2C45.462", + info: 'http://hub.arcgis.com/datasets/AuburnME::treeinventory?geometry=-81.930%2C42.701%2C-58.562%2C45.462', broken: false, download: - "https://opendata.arcgis.com/datasets/91bffc476216422481b511a48796a327_0.csv", + 'https://opendata.arcgis.com/datasets/91bffc476216422481b511a48796a327_0.csv', format: null, filename: null, gdalOptions: null, @@ -1811,32 +1812,32 @@ export default [ email: null, contact: null, crosswalk: { - idReference: "ID", - common: "COMMON", - scientific: "BOTANICAL", - dbh: "DBH", - health: "COND", - note: "NOTES", + idReference: 'ID', + common: 'COMMON', + scientific: 'BOTANICAL', + dbh: 'DBH', + health: 'COND', + note: 'NOTES', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "NY", - city: "Hudson River Park", - short: "Hudson River Park", - long: "Hudson River Park Trust", - idName: "hudson_river_park", - main: "hudson_river_park", + country: 'United States of America', + state: 'NY', + city: 'Hudson River Park', + short: 'Hudson River Park', + long: 'Hudson River Park Trust', + idSourceName: 'hudson_river_park', + main: 'hudson_river_park', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/SustainableMSU::tree", + info: 'http://hub.arcgis.com/datasets/SustainableMSU::tree', broken: true, download: - "https://opendata.arcgis.com/datasets/51b5e5da030f4331af48cb052f2d2d5e_1.csv", + 'https://opendata.arcgis.com/datasets/51b5e5da030f4331af48cb052f2d2d5e_1.csv', format: null, filename: null, gdalOptions: null, @@ -1844,32 +1845,32 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "Species_Latin_Name", - common: "Species_Common_Name", + scientific: 'Species_Latin_Name', + common: 'Species_Common_Name', height: 'Height', dbh: 'DBH', - structure: "Structural_Value", - idReference: "HRPT_Numbering_1", + structure: 'Structural_Value', + idReference: 'HRPT_Numbering_1', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "FL", - city: "Cape Coral", - short: "Cape Coral", - long: "Cape Coral", - idName: "cape_coral", - main: "cape_coral", + country: 'United States of America', + state: 'FL', + city: 'Cape Coral', + short: 'Cape Coral', + long: 'Cape Coral', + idSourceName: 'cape_coral', + main: 'cape_coral', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/CapeGIS::tree-inventory", + info: 'http://hub.arcgis.com/datasets/CapeGIS::tree-inventory', broken: false, download: - "https://opendata.arcgis.com/datasets/e988fe06668e44ea996a53c4365531b9_0.csv", + 'https://opendata.arcgis.com/datasets/e988fe06668e44ea996a53c4365531b9_0.csv', format: null, filename: null, gdalOptions: null, @@ -1877,181 +1878,182 @@ export default [ email: null, contact: null, crosswalk: { - common: "SPECIES", - dbh: "DBH", - crown: "CANOPY", - location: "SITE", - health: "CONDITION", - updated: "last_edited_date", - height: "HEIGHT", - note: "COMMENTS", + common: 'SPECIES', + dbh: 'DBH', + crown: 'CANOPY', + location: 'SITE', + health: 'CONDITION', + updated: 'last_edited_date', + height: 'HEIGHT', + note: 'COMMENTS', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "IL", - city: "Naperville", - short: "Naperville", - long: "Naperville", - idName: "naperville", - main: "naperville", + country: 'United States of America', + state: 'IL', + city: 'Naperville', + short: 'Naperville', + long: 'Naperville', + idSourceName: 'naperville', + main: 'naperville', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/naperville::right-of-way-tree-inventory", + info: 'http://hub.arcgis.com/datasets/naperville::right-of-way-tree-inventory', broken: false, download: - "https://www.arcgis.com/sharing/rest/content/items/a6865fd074b54a369ad79c87680af8a9/data", - format: "csv", - filename: "naperville.csv", + 'https://www.arcgis.com/sharing/rest/content/items/a6865fd074b54a369ad79c87680af8a9/data', + format: 'csv', + filename: 'naperville.csv', gdalOptions: null, license: null, email: null, contact: null, crosswalk: { - common: "CULTIVAR", - scientific: "FAMILY", - family: "FAMILY", - variety: "CULTIVAR", - genus: "GENUS", - idReference: "FACILITYID", - health: "CONDITION_CLASS", - updated: "DATE_CHANGED", - planted: "DatePlanted", - who: "PLANTED_BY", + common: 'CULTIVAR', + scientific: 'FAMILY', + family: 'FAMILY', + variety: 'CULTIVAR', + genus: 'GENUS', + idReference: 'FACILITYID', + health: 'CONDITION_CLASS', + updated: 'DATE_CHANGED', + planted: 'DatePlanted', + who: 'PLANTED_BY', dbh: 'DIAMETER', - note: "COMMENT", - neighborhood: "DISTRICT", + note: 'COMMENT', + neighborhood: 'DISTRICT', address: (x) => `${x.ADDRESS_NUMBER} ${x.ADDRESS_STREET}`, }, - }, + }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Alameda", - short: "Alameda", - long: "Alameda", - idName: "alameda", - main: "alameda", + country: 'United States of America', + state: 'CA', + city: 'Alameda', + short: 'Alameda', + long: 'Alameda', + idSourceName: 'alameda', + main: 'alameda', center: null, latitude: null, longitude: null, - info: "https://www.arboraccess.com/Custom/Alameda/Public/TreeInventoryMap.aspx?Width=1000&Height=800", + info: 'https://www.arboraccess.com/Custom/Alameda/Public/TreeInventoryMap.aspx?Width=1000&Height=800', broken: false, - download: "https://waterthetrees.com/api/csv?city=Alameda", + download: 'https://waterthetrees.com/api/csv?city=Alameda', format: 'csv', filename: 'alameda.csv', gdalOptions: null, license: null, - email: "pw@alamedaca.gov", - contact: "Alameda Public Works", + email: 'pw@alamedaca.gov', + contact: 'Alameda Public Works', crosswalk: { common: 'common', - idReference: "idReference", - health: "health", - height: "height", - address: "address", - planted: "datePlanted", - dbh: "dbh", + idReference: 'idReference', + health: 'health', + height: 'height', + address: 'address', + planted: 'datePlanted', + dbh: 'dbh', family: 'scientific'.split(' ')[0], species: 'scientific', genus: 'genus', - owner: "owner", + owner: 'owner', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Oakland", - short: "Oakland", - long: "Oakland", - idName: "oakland", - main: "oakland", + country: 'United States of America', + state: 'CA', + city: 'Oakland', + short: 'Oakland', + long: 'Oakland', + idSourceName: 'oakland', + main: 'oakland', center: null, latitude: null, longitude: null, - info: "https://www.treesforoakland.org", + info: 'https://www.treesforoakland.org', broken: false, - download: "https://waterthetrees.com/api/csv?city=Oakland", + download: 'https://waterthetrees.com/api/csv?city=Oakland', format: 'csv', filename: 'oakland.csv', gdalOptions: null, license: null, - email: "sctreeplanting@gmail.com", - contact: "Trees for Oakland", - phone: "510-969-0185", + email: 'sctreeplanting@gmail.com', + contact: 'Trees for Oakland', + phone: '510-969-0185', crosswalk: { common: 'common', - idReference: "idReference", - health: "health", - address: "address", - planted: "datePlanted", - dbh: "dbh", - height: "height", + idReference: 'idReference', + health: 'health', + address: 'address', + planted: 'datePlanted', + dbh: 'dbh', + height: 'height', family: (x) => x.scientific.split(' ')[0], genus: 'genus', species: 'scientific', scientific: 'scientific', - owner: "owner", + owner: 'owner', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Pasadena", - short: "Pasadena", - long: "Pasadena", - idName: "pasadena", - main: "pasadena", + country: 'United States of America', + state: 'CA', + city: 'Pasadena', + short: 'Pasadena', + long: 'Pasadena', + idSourceName: 'pasadena', + main: 'pasadena', center: null, latitude: null, longitude: null, - info: "https://data.cityofpasadena.net/", + info: 'https://data.cityofpasadena.net/', broken: false, - download: "https://opendata.arcgis.com/api/v3/datasets/593b88391b614123890f54a1db8fbf55_2/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1", - format: "geojson", + download: + 'https://opendata.arcgis.com/api/v3/datasets/593b88391b614123890f54a1db8fbf55_2/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1', + format: 'geojson', filename: null, gdalOptions: null, license: null, - email: "citygis@cityofpasadena.net", - contact: "City of Pasadena Open Data Site", + email: 'citygis@cityofpasadena.net', + contact: 'City of Pasadena Open Data Site', crosswalk: { - common: "Common_Name", - genus: "Genus", - species: "Species", - dbh: "Trunk_Diameter", + common: 'Common_Name', + genus: 'Genus', + species: 'Species', + dbh: 'Trunk_Diameter', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "San Francisco", - short: "San Francisco", - long: "San Francisco", - idName: "san_francisco", - main: "san_francisco", + country: 'United States of America', + state: 'CA', + city: 'San Francisco', + short: 'San Francisco', + long: 'San Francisco', + idSourceName: 'san_francisco', + main: 'san_francisco', center: null, latitude: null, longitude: null, - info: "https://data.sfgov.org/City-Infrastructure/Street-Tree-List/tkzw-k3nq", + info: 'https://data.sfgov.org/City-Infrastructure/Street-Tree-List/tkzw-k3nq', broken: false, download: - "https://data.sfgov.org/api/views/tkzw-k3nq/rows.csv?accessType=DOWNLOAD", + 'https://data.sfgov.org/api/views/tkzw-k3nq/rows.csv?accessType=DOWNLOAD', format: null, filename: null, gdalOptions: null, @@ -2078,20 +2080,20 @@ export default [ isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "San Jose", - short: "San Jose", - long: "San Jose Medians and Backups", - idName: "san_jose1", - main: "san_jose1", + country: 'United States of America', + state: 'CA', + city: 'San Jose', + short: 'San Jose', + long: 'San Jose Medians and Backups', + idSourceName: 'san_jose1', + main: 'san_jose1', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/csjdotgis::trees-medians-and-backups", + info: 'http://hub.arcgis.com/datasets/csjdotgis::trees-medians-and-backups', broken: false, download: - "https://opendata.arcgis.com/datasets/0b0ad30145394b1588ff09ef1a7c9225_1.csv", + 'https://opendata.arcgis.com/datasets/0b0ad30145394b1588ff09ef1a7c9225_1.csv', format: null, filename: null, gdalOptions: null, @@ -2099,35 +2101,35 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "NAMESCIENTIFIC", - age: "TREEAGE", + scientific: 'NAMESCIENTIFIC', + age: 'TREEAGE', dbh: 'DBH', height: 'Height', crown: 'CROWN', - health: (x) => String(x.CONDITION).split(" ")[0], - note: "NOTES", - updated: "EditDate", - owner: "OWNEDBY", + health: (x) => String(x.CONDITION).split(' ')[0], + note: 'NOTES', + updated: 'EditDate', + owner: 'OWNEDBY', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "San Jose", - short: "San Jose", - long: "San Jose Special Districts", - idName: "san_jose2", - main: "san_jose1", + country: 'United States of America', + state: 'CA', + city: 'San Jose', + short: 'San Jose', + long: 'San Jose Special Districts', + idSourceName: 'san_jose2', + main: 'san_jose1', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/csjdotgis::trees-special-districts", + info: 'http://hub.arcgis.com/datasets/csjdotgis::trees-special-districts', broken: false, download: - "https://opendata.arcgis.com/datasets/0b0ad30145394b1588ff09ef1a7c9225_0.csv", + 'https://opendata.arcgis.com/datasets/0b0ad30145394b1588ff09ef1a7c9225_0.csv', format: null, filename: null, gdalOptions: null, @@ -2135,35 +2137,35 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "NAMESCIENTIFIC", - age: "TREEAGE", + scientific: 'NAMESCIENTIFIC', + age: 'TREEAGE', dbh: 'DBH', height: 'Height', crown: 'CROWN', - health: (x) => String(x.CONDITION).split(" ")[0], - note: "NOTES", - updated: "EditDate", - owner: "OWNEDBY", + health: (x) => String(x.CONDITION).split(' ')[0], + note: 'NOTES', + updated: 'EditDate', + owner: 'OWNEDBY', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "San Jose", - short: "San Jose", - long: "San Jose General Fund", - idName: "san_jose3", - main: "san_jose1", + country: 'United States of America', + state: 'CA', + city: 'San Jose', + short: 'San Jose', + long: 'San Jose General Fund', + idSourceName: 'san_jose3', + main: 'san_jose1', center: null, latitude: null, longitude: null, - info: "http://hub.arcgis.com/datasets/csjdotgis::trees-general-fund-street", + info: 'http://hub.arcgis.com/datasets/csjdotgis::trees-general-fund-street', broken: false, download: - "https://opendata.arcgis.com/datasets/0b0ad30145394b1588ff09ef1a7c9225_2.csv", + 'https://opendata.arcgis.com/datasets/0b0ad30145394b1588ff09ef1a7c9225_2.csv', format: null, filename: null, gdalOptions: null, @@ -2171,46 +2173,47 @@ export default [ email: null, contact: null, crosswalk: { - scientific: "NAMESCIENTIFIC", - age: "TREEAGE", + scientific: 'NAMESCIENTIFIC', + age: 'TREEAGE', dbh: 'DBH', height: 'Height', crown: 'CROWN', - health: (x) => String(x.CONDITION).split(" ")[0], - note: "NOTES", - updated: "EditDate", - owner: "OWNEDBY", + health: (x) => String(x.CONDITION).split(' ')[0], + note: 'NOTES', + updated: 'EditDate', + owner: 'OWNEDBY', }, }, { isoAlpha2: 'US', isoAlpha3: 'USA', numericCountryCode: '840', - country: "United States of America", - state: "CA", - city: "Santa Monica", - short: "Santa Monica", - long: "Santa Monica", - idName: "santa_monica", - main: "santa_monica", + country: 'United States of America', + state: 'CA', + city: 'Santa Monica', + short: 'Santa Monica', + long: 'Santa Monica', + idSourceName: 'santa_monica', + main: 'santa_monica', center: null, latitude: null, longitude: null, - info: "https://data.smgov.net/", + info: 'https://data.smgov.net/', broken: false, - download: "https://opendata.arcgis.com/api/v3/datasets/64f5db2cbb224f6d87387999a300b962_0/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1", - format: "geojson", + download: + 'https://opendata.arcgis.com/api/v3/datasets/64f5db2cbb224f6d87387999a300b962_0/downloads/data?format=geojson&spatialRefId=4326&where=1%3D1', + format: 'geojson', filename: null, gdalOptions: null, license: null, - email: "data@smgov.net", - contact: "City of Santa Monica Open Data", + email: 'data@smgov.net', + contact: 'City of Santa Monica Open Data', crosswalk: { - common: "commonname", - species: "botanicalname", - dbh: "actualdbh", - height: "height", - note: "recommended", + common: 'commonname', + species: 'botanicalname', + dbh: 'actualdbh', + height: 'height', + note: 'recommended', }, }, ]; diff --git a/src/core/sources.js b/src/core/sources.js index dfd8219..5803f8b 100644 --- a/src/core/sources.js +++ b/src/core/sources.js @@ -1,6 +1,6 @@ /* Schema (incomplete): -idName (required): internal identifier used in naming files and linking things. +idSourceName (required): internal identifier used in naming files and linking things. short: Short name for the city, shown on the map (eg Melbourne) long: Full name for the government body (eg City of Melbourne) brokenDownload: Indicates whether the data source is usable @@ -44,9 +44,9 @@ Future fields: - units (metric/imperial), assume metric unless US */ -import path from "path"; -import * as utils from "./utils.js"; -import * as config from "../config.js"; +import path from 'path'; +import * as utils from './utils.js'; +import * as config from '../config.js'; const filenames = await utils.asyncReadDir(config.SOURCES_DIRECTORY); @@ -63,19 +63,31 @@ const sources = raw.map((source) => { ...source, destinations: { raw: { - path: path.join(config.RAW_DIRECTORY, `${source.idName}.${extension}`), + path: path.join( + config.RAW_DIRECTORY, + `${source.idSourceName}.${extension}`, + ), extension, }, rawBackup: { - path: path.join(config.RAW_BACKUP_DIRECTORY, `${source.idName}.${extension}`), + path: path.join( + config.RAW_BACKUP_DIRECTORY, + `${source.idSourceName}.${extension}`, + ), extension, }, geojson: { - path: path.join(config.GEOJSON_DIRECTORY, `${source.idName}.geojsons`), - extension: "geojsons", + path: path.join( + config.GEOJSON_DIRECTORY, + `${source.idSourceName}.geojsons`, + ), + extension: 'geojsons', }, normalized: { - path: path.join(config.NORMALIZED_DIRECTORY, `${source.idName}.geojsons`), + path: path.join( + config.NORMALIZED_DIRECTORY, + `${source.idSourceName}.geojsons`, + ), extension: extension, }, }, diff --git a/src/stages/convert.js b/src/stages/convert.js index fa35897..aa60951 100644 --- a/src/stages/convert.js +++ b/src/stages/convert.js @@ -1,13 +1,13 @@ -import fs from "fs"; -import path from "path"; -import { spawn } from "child_process"; -import { once } from "events"; -import pLimit from "p-limit"; -import extractZip from "extract-zip"; -import recurseDirs from "recursive-readdir"; -import * as utils from "../core/utils.js"; -import * as config from "../config.js"; -import makeDir from "make-dir"; +import fs from 'fs'; +import path from 'path'; +import { spawn } from 'child_process'; +import { once } from 'events'; +import pLimit from 'p-limit'; +import extractZip from 'extract-zip'; +import recurseDirs from 'recursive-readdir'; +import * as utils from '../core/utils.js'; +import * as config from '../config.js'; +import makeDir from 'make-dir'; export const convertDownloadToGeoJSON = async (source) => { if ( @@ -21,17 +21,17 @@ export const convertDownloadToGeoJSON = async (source) => { const rawExists = await utils.asyncFileExists(source.destinations.raw.path); if (!rawExists) { console.log( - `The expected download '${source.destinations.raw.path}' does not exist. Skipping...` + `The expected download '${source.destinations.raw.path}' does not exist. Skipping...`, ); - return `NO FILE for ${source.idName}`; // Early Return + return `NO FILE for ${source.idSourceName}`; // Early Return } const geoJSONExists = await utils.asyncFileExists( - source.destinations.geojson.path + source.destinations.geojson.path, ); if (geoJSONExists) { console.log( - `The GeoJSON file '${source.destinations.geojson.path}' already exists... Skipping...` + `The GeoJSON file '${source.destinations.geojson.path}' already exists... Skipping...`, ); return source.destinations.geojson.path; // Early Return } @@ -41,15 +41,15 @@ export const convertDownloadToGeoJSON = async (source) => { let convertPath = source.destinations.raw.path; // We just copy over GeoJSON files - if (source.destinations.raw.extension === "geojson") { + if (source.destinations.raw.extension === 'geojson') { const writer = fs.createWriteStream(source.destinations.geojson.path); const data = JSON.parse( - await utils.asyncReadFile(source.destinations.raw.path) + await utils.asyncReadFile(source.destinations.raw.path), ); for (const index in data.features) { if (!writer.write(`${JSON.stringify(data.features[index])}\n`)) { - await once(writer, "drain"); + await once(writer, 'drain'); } } writer.end(); @@ -58,19 +58,22 @@ export const convertDownloadToGeoJSON = async (source) => { return source.destinations.geojson.path; // Early Return } - if (source.destinations.raw.extension == "zip") { - const extractTo = path.join(config.RAW_DIRECTORY, `${source.idName}-unzipped`); + if (source.destinations.raw.extension == 'zip') { + const extractTo = path.join( + config.RAW_DIRECTORY, + `${source.idSourceName}-unzipped`, + ); await extractZip(source.destinations.raw.path, { dir: extractTo, }); - const searchExtension = [source.format, "shp"].find( - (ext) => ext && ext !== "zip" + const searchExtension = [source.format, 'shp'].find( + (ext) => ext && ext !== 'zip', ); convertPath = (await recurseDirs(extractTo)).find((f) => - f.match(`${searchExtension}$`) + f.match(`${searchExtension}$`), ); if (!convertPath) { @@ -78,52 +81,60 @@ export const convertDownloadToGeoJSON = async (source) => { } } - console.log(`Processing '${source.idName}' (path: '${convertPath}')...`); + console.log( + `Processing '${source.idSourceName}' (path: '${convertPath}')...`, + ); // USE 8 DECIMAL PLACES FOR COORDINATES OR ELSE COLLISIONS WILL HAPPEN // "-co", // `DECIMAL_PRECISION=${8}`, // https://gis.stackexchange.com/questions/397571/change-in-coordinate-precision-with-ogr2ogr-moving-from-gdal-2-to-3 const subshell = spawn( - "ogr2ogr", + 'ogr2ogr', [ - "-s_srs", + '-s_srs', source.srs || config.DEFAULT_CRS, - "-t_srs", + '-t_srs', config.DEFAULT_CRS, - "-gt", - "65536", - "-lco", + '-gt', + '65536', + '-lco', `COORDINATE_PRECISION=${14}`, - "-oo", + '-oo', `GEOM_POSSIBLE_NAMES=${ - convertPath.includes('unzipped') ? source.geometryField : config.POSSIBLE_GEOMETRY_FIELDS_STRING + convertPath.includes('unzipped') + ? source.geometryField + : config.POSSIBLE_GEOMETRY_FIELDS_STRING }`, - "-oo", + '-oo', `X_POSSIBLE_NAMES=${ - convertPath.includes('unzipped') ? source.longitudeField : config.POSSIBLE_LONGITUDE_FIELDS_STRING + convertPath.includes('unzipped') + ? source.longitudeField + : config.POSSIBLE_LONGITUDE_FIELDS_STRING }`, - "-oo", + '-oo', `Y_POSSIBLE_NAMES=${ - convertPath.includes('unzipped') ? source.latitudeField : config.POSSIBLE_LATITUDE_FIELDS_STRING + convertPath.includes('unzipped') + ? source.latitudeField + : config.POSSIBLE_LATITUDE_FIELDS_STRING }`, - "-f", - "GeoJSONSeq", - "/vsistdout/", + '-f', + 'GeoJSONSeq', + '/vsistdout/', source.gdal_options || source.gdalOptions, convertPath, ].filter((x) => !!x), { - stdio: ["ignore", "pipe", process.stderr], - } + stdio: ['ignore', 'pipe', process.stderr], + }, ); const writable = fs.createWriteStream(source.destinations.geojson.path, { - encoding: "utf8", + encoding: 'utf8', }); for await (const chunk of subshell.stdout) { if (!writable.write(chunk)) { - await once(writable, "drain"); + await once(writable, 'drain'); } } writable.end(); @@ -134,10 +145,10 @@ export const convertDownloadToGeoJSON = async (source) => { export const convertDownloadsToGeoJSON = async (list) => { const limit = pLimit(10); const promises = list.map((source) => - limit(() => convertDownloadToGeoJSON(source)) + limit(() => convertDownloadToGeoJSON(source)), ); const results = await Promise.allSettled(promises); - console.log("Finished processing..."); + console.log('Finished processing...'); results.forEach((l) => { if (l && l.forEach) { l.forEach(console.log); diff --git a/src/stages/download.js b/src/stages/download.js index bb9e34f..b2de4c9 100644 --- a/src/stages/download.js +++ b/src/stages/download.js @@ -1,9 +1,9 @@ -import fs from "fs"; -import path from "path"; -import http from "http"; -import https from "https"; -import makeDir from "make-dir"; -import pLimit from "p-limit"; +import fs from 'fs'; +import path from 'path'; +import http from 'http'; +import https from 'https'; +import makeDir from 'make-dir'; +import pLimit from 'p-limit'; export const downloadSource = async (source) => { return new Promise((resolve, reject) => { @@ -13,53 +13,53 @@ export const downloadSource = async (source) => { if (!source.download) { console.error( - `No download specified for source with idName '${source.idName}'...` + `No download specified for source with idSourceName '${source.idSourceName}'...`, ); - return reject(new Error("No download link")); + return reject(new Error('No download link')); } // If the results already exist, we need not attempt to download them again if (fs.existsSync(source.destinations.raw.path)) { console.log( - `File already exists (idName: '${source.idName}'; destination: '${source.destinations.raw.path}')` + `File already exists (idSourceName: '${source.idSourceName}'; destination: '${source.destinations.raw.path}')`, ); return resolve(source.destinations.raw.path); } makeDir.sync(path.dirname(source.destinations.raw.path)); - const proto = !source.download.charAt(4).localeCompare("s") ? https : http; + const proto = !source.download.charAt(4).localeCompare('s') ? https : http; proto .get(source.download, (response) => { if (response.statusCode < 200 || response.statusCode >= 300) { return reject( new Error( - `Bad response from '${source.download}' (status: ${response.statusCode}; id: '${source.idName}')` - ) + `Bad response from '${source.download}' (status: ${response.statusCode}; id: '${source.idSourceName}')`, + ), ); } console.log( - `Good response! (status: ${response.statusCode}; id: '${source.idName}'; destination: '${source.destinations.raw.path}')` + `Good response! (status: ${response.statusCode}; id: '${source.idSourceName}'; destination: '${source.destinations.raw.path}')`, ); const stream = fs.createWriteStream(source.destinations.raw.path); response.pipe(stream); - stream.on("error", reject); + stream.on('error', reject); - stream.on("finish", () => { + stream.on('finish', () => { console.log( - `Finished writing '${source.destinations.raw.path}' (id: '${source.idName}')` + `Finished writing '${source.destinations.raw.path}' (id: '${source.idSourceName}')`, ); stream.close(() => resolve(source.destinations.raw.path)); }); }) - .on("error", (err) => { + .on('error', (err) => { console.error( - `Failed downloading source for ${source.idName}. (url: '${source.download}'; destination: '${source.destinations.raw.path}')` + `Failed downloading source for ${source.idSourceName}. (url: '${source.download}'; destination: '${source.destinations.raw.path}')`, ); return reject(err); }); @@ -69,10 +69,10 @@ export const downloadSource = async (source) => { export const downloadSources = async (list) => { const limit = pLimit(10); const promises = list.map((source) => - limit(() => downloadSource(source).catch(console.error)) + limit(() => downloadSource(source).catch(console.error)), ); const results = await Promise.allSettled(promises); - console.log("Finished downloading..."); + console.log('Finished downloading...'); results.forEach((l) => { if (l && l.forEach) { l.forEach(console.log); diff --git a/src/stages/normalize.js b/src/stages/normalize.js index 2a62341..311e84a 100644 --- a/src/stages/normalize.js +++ b/src/stages/normalize.js @@ -1,41 +1,41 @@ -import fs from "fs"; -import path from "path"; -import { inspect } from "util"; -import { once } from "events"; -import makeDir from "make-dir"; -import pLimit from "p-limit"; +import fs from 'fs'; +import path from 'path'; +import { inspect } from 'util'; +import { once } from 'events'; +import makeDir from 'make-dir'; +import pLimit from 'p-limit'; import { createIdForTree } from '@waterthetrees/tree-id'; -import * as utils from "../core/utils.js"; -import * as constants from "../constants.js"; +import * as utils from '../core/utils.js'; +import * as constants from '../constants.js'; -const RECSEP = RegExp(String.fromCharCode(30), "g"); +const RECSEP = RegExp(String.fromCharCode(30), 'g'); const transform = (context, source, line) => { if (!line || !line.length) { return null; } - const sanitized = line.replace(RECSEP, "").trim(); + const sanitized = line.replace(RECSEP, '').trim(); const data = JSON.parse(sanitized); if (source.coordsFunc) { data.geometry = { - type: "Point", + type: 'Point', coordinates: source.coordsFunc(data.properties), }; } - + if (!data.geometry) { context.nullGeometry += 1; return null; // Early Return } // We want all points to only have two coordinates - if (data.geometry.type === "Point") { + if (data.geometry.type === 'Point') { data.geometry.coordinates = data.geometry.coordinates.slice(0, 2); } if (!data.geometry.coordinates || data.geometry.coordinates.length !== 2) { - `Found feature with a invalid geometry. (source.idName: '${source.idName}'; feature: '${line}'')`; + `Found feature with a invalid geometry. (source.idSourceName: '${source.idSourceName}'; feature: '${line}'')`; context.invalidGeometry += 1; return null; } @@ -44,7 +44,7 @@ const transform = (context, source, line) => { data.geometry.coordinates[0] === 0 && data.geometry.coordinates[1] === 0 ) { - `Found feature with a invalid geometry. (source.idName: '${source.idName}'; feature: '${line}'')`; + `Found feature with a invalid geometry. (source.idSourceName: '${source.idSourceName}'; feature: '${line}'')`; context.invalidGeometry += 1; return null; } @@ -55,7 +55,7 @@ const transform = (context, source, line) => { data.geometry.coordinates[1] < constants.MIN_LAT || data.geometry.coordinates[1] > constants.MAX_LAT ) { - `Found feature with a invalid geometry. (source.idName: '${source.idName}'; feature: '${line}'')`; + `Found feature with a invalid geometry. (source.idSourceName: '${source.idSourceName}'; feature: '${line}'')`; context.invalidGeometry += 1; return null; } @@ -67,13 +67,13 @@ const transform = (context, source, line) => { if (!value) { console.error( - `Found crosswalk value that cannot be interpreted. (source.idName: '${source.idName}'; key: '${key}')` + `Found crosswalk value that cannot be interpreted. (source.idSourceName: '${source.idSourceName}'; key: '${key}')`, ); return memo; // Early Return } const v = - typeof value === "function" + typeof value === 'function' ? value(data.properties) : data.properties[value]; if (v) { @@ -84,19 +84,20 @@ const transform = (context, source, line) => { // Set the new properties const dataForId = { - ...mappedProperties, - idName: source.idName, + ...mappedProperties, + idSourceName: source.idSourceName, city: source.city, state: source.state, - lat: data.geometry.coordinates[1], - lng: data.geometry.coordinates[0] + lat: data.geometry.coordinates[1], + lng: data.geometry.coordinates[0], }; // This is the tree's unique id const id = createIdForTree(dataForId); data.id = id; - data.properties = { ...mappedProperties, - id, - idName: source.idName, + data.properties = { + ...mappedProperties, + id, + idSourceName: source.idSourceName, city: source.city, isoAlpha2: source.isoAlpha2, isoAlpha3: source.isoAlpha3, @@ -105,15 +106,15 @@ const transform = (context, source, line) => { email: source.email, download: source.download, info: source.info, - lat: data.geometry.coordinates[1], + lat: data.geometry.coordinates[1], lng: data.geometry.coordinates[0], - count: 0, + count: 0, }; return data; }; export const normalizeSource = async (source) => { - console.log('source.idName', source.idName); + console.log('source.idSourceName', source.idSourceName); if ( !source.destinations || !source.destinations.geojson || @@ -125,30 +126,30 @@ export const normalizeSource = async (source) => { await makeDir(path.dirname(source.destinations.normalized.path)); const geojsonExists = await utils.asyncFileExists( - source.destinations.geojson.path + source.destinations.geojson.path, ); if (!geojsonExists) { console.log( - `The expected geojson '${source.destinations.geojson.path}' does not exist. Skipping...` + `The expected geojson '${source.destinations.geojson.path}' does not exist. Skipping...`, ); - return `NO FILE for ${source.idName}`; // Early Return + return `NO FILE for ${source.idSourceName}`; // Early Return } const normalizedExists = await utils.asyncFileExists( - source.destinations.normalized.path + source.destinations.normalized.path, ); if (normalizedExists) { console.log( - `The normalized file '${source.destinations.normalized.path}' already exists. Skipping...` + `The normalized file '${source.destinations.normalized.path}' already exists. Skipping...`, ); - return `NO FILE for ${source.idName}`; // Early Return + return `NO FILE for ${source.idSourceName}`; // Early Return } const reader = fs.createReadStream(source.destinations.geojson.path, { - encoding: "utf-8", + encoding: 'utf-8', }); const writer = fs.createWriteStream(source.destinations.normalized.path, { - encoding: "utf-8", + encoding: 'utf-8', }); const context = { @@ -158,7 +159,13 @@ export const normalizeSource = async (source) => { }; if (context.nullGeometry || context.invalidGeometry) { - console.log('context', context.source.idName, context.source.id, context.nullGeometry, context.invalidGeometry); + console.log( + 'context', + context.source.idSourceName, + context.source.id, + context.nullGeometry, + context.invalidGeometry, + ); } const groups = {}; @@ -179,12 +186,12 @@ export const normalizeSource = async (source) => { const content = `${JSON.stringify(groups[_id])}\n`; if (!writer.write(content)) { - await once(writer, "drain"); + await once(writer, 'drain'); } } catch (err) { console.error(err); console.error( - `Failed normalizing '${source.destinations.geojson.path}'...` + `Failed normalizing '${source.destinations.geojson.path}'...`, ); throw err; // Reraise } @@ -199,7 +206,7 @@ export const normalizeSources = async (list) => { const limit = pLimit(10); const promises = list.map((source) => limit(() => normalizeSource(source))); const results = await Promise.allSettled(promises); - console.log("Finished normalizations"); + console.log('Finished normalizations'); results.forEach((l) => { if (l && l.forEach) { l.forEach(console.log);