X-Git-Url: http://git.vanrenterghem.biz/www2.vanrenterghem.biz.git/blobdiff_plain/9d5cad4353459e7fa815d6a8a677037b58e69668..fc9fb1e406c4f9b75e074a9fbc34bd0e526448d4:/source/posts/obtaining_SLIP_data_using_R.org?ds=sidebyside diff --git a/source/posts/obtaining_SLIP_data_using_R.org b/source/posts/obtaining_SLIP_data_using_R.org index 1d20221..f613f45 100644 --- a/source/posts/obtaining_SLIP_data_using_R.org +++ b/source/posts/obtaining_SLIP_data_using_R.org @@ -1,23 +1,19 @@ -#+date: 2023-10-11T23:41:54+08:00 -#+opengraph2: ogimage="https://www.vanrenterghem.biz/blog/pics/SLIP_WA_schools.png" +#+date: <2023-10-11 23:41:54 +08:00> #+filetags: R spatial analysis visualisation +#+title: Obtaining WA Landgate Shared Location Information using R. Six years ago, [[file:using spatial features and openstreetmap][I wrote about Simple Features (sf) in R]]. I mapped the number of pupils per high school in the Perth metro area. At the time, I didn't include how to obtain the shapefile, provided as open data by Landgate on behalf of the Western Australian government through its Shared Location Information -Platform ([[https://data.wa.gov.au/slip][SLIP]]). +Platform ([[https://data.wa.gov.au/slip][SLIP]]). I have now updated the script, -[[http://git.vanrenterghem.biz/?p=R/project-wa-schools.git;a=summary][available -in my code repository]], with an R implementation of -[[https://toolkit.data.wa.gov.au/hc/en-gb/articles/115000962734][the -methodology in SLIP's How To Guides]] -([[https://web.archive.org/web/20230608184007/https://toolkit.data.wa.gov.au/hc/en-gb/articles/115000962734][Archive]]). +[[http://git.vanrenterghem.biz/?p=R/project-wa-schools.git;a=summary][available in my code repository]], with an R implementation of +[[https://toolkit.data.wa.gov.au/hc/en-gb/articles/115000962734][the methodology in SLIP's How To Guides]] ([[https://web.archive.org/web/20230608184007/https://toolkit.data.wa.gov.au/hc/en-gb/articles/115000962734][Archive]]). The relevant code looks as follows, simplified greatly through the use -of the [[https://httr2.r-lib.org/][httr2]] library - the equivalent of -the [[https://docs.python-requests.org/en/latest/][Requests]] library +of the [[https://httr2.r-lib.org/][httr2]] library - the equivalent of the [[https://docs.python-requests.org/en/latest/][Requests]] library used in the Python example in the SLIP knowledge base: #+BEGIN_SRC R