ArcGIS API GeoJson

问题描述 投票:0回答:0

我有两个问题,希望有人能给我提供想法或解决方案。

  1. 我如何创建一个文件添加每周的数据来创建一个表;附加记录。
  2. 如何在导入之前或之后将字符串变量转换为数字变量。

我正在使用 GeoJson API 将此表添加到 ArcGIS Online 以在 Operational Dashboard 应用程序中使用。

我正在使用来自权威数据的API,它只提供每周数据。 API 连接到 ArcGIS Online 后,新数据会覆盖仪表盘中的现有数据,因此趋势分析中无需使用或显示历史数据表。

问题一: 有没有人有关于如何保存每周数据以创建可用于趋势分析的主数据集的解决方案,而无需将每周数据输入到 ArcGIS Online 之外的单独 excel 文件中?

这是API代码:

https://healthdata.gov/resource/di4u-7yu6.geojson?fips=24003

{“类型”:“FeatureCollection”,“特征”:[{“类型”:“特征”,“几何”:空,“属性”:{“test_positivity_rate_pct_change_from_prev_week”:“-0.006”,“pct_vents_used_covid_avg_last_7_days”:空, “state”:“MD”,“cases_last_7_days”:“138”,“total_tests_pct_change_from_prev_week”:“0.061”,“pct_inpatient_beds_used_abs_change_from_prev_week”:“-0.003”,“confirmed_covid_hosp_per_100_beds_last_7_days”:“0.806”,“pc t_inpatient_beds_used_covid_abs_change_from_prev_week":"-0.006", “pct_icu_beds_used_covid_abs_change_from_prev_week”:“-0.001”,“cases_pct_change_from_prev_week”:“-0.048”,“pct_inpatient_beds_used_covid_avg_last_7_days”:“0.011”,“total_tests_per_100k_last_7_days”:“304 .885","fips":"24003","pct_icu_beds_used_abs_change_from_prev_week":"-0.002" "deaths_pct_change_from_prev_week":null,"county":"马里兰州安妮阿伦德尔县","deaths_last_7_days":"2","pct_fully_vacc_total_pop":"0.809","pct_icu_beds_used_avg_last_7_days":"0.794","deaths_per_100k_last_7_day小号“:”0.345“ "test_positivity_rate_last_7_days":"0.03","confirmed_covid_hosp_last_7_days":"10.524","date":"2023-04-26T00:00:00.000","pct_vents_used_avg_last_7_days":null,"pct_fully_vacc_65_and_older":"0 .95","fema_region" :“3”,“pct_inpatient_beds_used_avg_last_7_days”:“0.807”,“pct_icu_beds_used_covid_avg_last_7_days”:“0.019”,“total_cases”:“120978”,“total_positive_tests_last_7_days”:“67”,“total_deaths”:“1288” , "pct_vents_used_abs_change_from_prev_week":null "suspected_covid_hosp_last_7_days":"85.539","suspected_covid_hosp_per_100_beds_pct_change_from_prev_week":"-0.117","confirmed_covid_hosp_per_100_beds_pct_change_from_prev_week":"-0.35","suspected_covid_hosp_per_ 100_beds_last_7_days":"6.549","total_tests_last_7_days":"1766","cases_per_100k_last_7_days":"23.825" ,"pct_vents_used_covid_abs_change_from_prev_week":null}}], "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } } }

这是导入的数据在 ArcGIS Online 中的表格中的样子

问题2: 当 API 将数据导入 ArcGIS Online 时,一些变量会转换为字符串变量。在操作仪表板中使用它时如何将其转换回数字变量?

api geojson dashboard arcgis-online
© www.soinside.com 2019 - 2024. All rights reserved.