有没有办法在R中查询webmap服务器?

时间:2018-03-06 21:26:05

标签: r web

人口普查OnTheMap下载链接在格式1中似乎是常规的。如何在R中自动调用它? (我有一个约30个县的名单,我希望这样做)。 SLC,犹他州和科罗拉多州丹佛的示例链接:

https://onthemap.ces.census.gov/cgi-bin/report.py?report_id=otm_d2c5f4708fff45dd8a153aeea29b66ae&settings=%7B%22analysis_type%22%3A%22area_profile_report%22%2C%22view%22%3A%22summary%22%2C%22characteristic%22%3A%22c000%22%2C%22year%22%3A2015%2C%22job_type%22%3A%22jt00%22%2C%22ap_segment%22%3A%22s000%22%2C%22origin%22%3A%22work%22%2C%22color%22%3A%5B%22%230000AA%22%5D%7D&mode=export_geography&format=shp

https://onthemap.ces.census.gov/cgi-bin/report.py?report_id=otm_b874bc58baa84cbea0d57c2f654450ef&settings=%7B%22analysis_type%22%3A%22area_profile_report%22%2C%22view%22%3A%22summary%22%2C%22characteristic%22%3A%22c000%22%2C%22year%22%3A2015%2C%22job_type%22%3A%22jt00%22%2C%22ap_segment%22%3A%22s000%22%2C%22origin%22%3A%22work%22%2C%22color%22%3A%5B%22%230000AA%22%5D%7D&mode=export_geography&format=shp

下载链接的字符串由3部分组成,第一部分和第三部分相同,即:

  • 1)https://onthemap.ces.census.gov/cgi-bin/report.py?report_id=otm_
  • 2a)d2c5f4708fff45dd8a153aeea29b66ae
  • 2b)b874bc58baa84cbea0d57c2f654450ef
  • 3)& settings =%7B%22analysis_type%22%3A%22area_profile_report%22%2C%22view%22%3A%22summary%22%2C%22 characteristic%22%3A%22c000%22%2C%22year% 22%3A2015%2C%22job_type%22%3A%22jt00%22%2C%22ap_segment%22%3A%22s000%22%2C%22origin%22%3A%22work%22%2C%22color%22%3A%5B% 22%230000AA%22%5D%7D&安培;模式= export_geography&安培;格式= SHP

换句话说,有没有办法使用R在webmap服务器上自动执行查询?

0 个答案:

没有答案