Skip to content

Instantly share code, notes, and snippets.

@donalod
Created April 11, 2020 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donalod/21e45544c0c0764a8fe30659e98a18d4 to your computer and use it in GitHub Desktop.
Save donalod/21e45544c0c0764a8fe30659e98a18d4 to your computer and use it in GitHub Desktop.
COVID_19_IE_STATS
# Taken from https://geohive.maps.arcgis.com/apps/opsdashboard/index.html#/29dc1fec79164c179d18d8e53df82e96
curl -s -G https://services1.arcgis.com/eNO7HHeQ3rUcBllm/arcgis/rest/services/Covid19CountyStatisticsHPSCIrelandOpenData/FeatureServer/0/query -d "f=json" -d "where=1=1" -d "returnGeometry=false" -d "spatialRel=esriSpatialRelIntersects" -d "outFields=*&groupByFieldsForStatistics=CountyName" -d "outStatistics=[{\"statisticType\":\"sum\",\"onStatisticField\":\"ConfirmedCovidCases\",\"outStatisticFieldName\":\"value\"}]" -d "cacheHint=true" | jq '.features[].attributes | "\(.CountyName),\(.value)"' | sort -nr -k2 -t","
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment