-#+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