The simple script filter_licences.pl can be used to filter all but a desired tenement type from the Tenements_Live.kml listing provided by WA Dept of Mines, Industry, Regulation and Safety:
https://dasc.dmp.wa.gov.au/dasc/ -> Statewide spatial datasets -> Tenements -> Current (live and pending)
Direct link for the dataset zipfile is currently:
https://dasc.dmp.wa.gov.au/DASC/Download/File/5
The dataset zipfile contains several .kmz files, ie Tenements_Live.kmz and Tenements_Pending.kmz
Unzip the Tenements_Live.kmz so it becomes Tenements_Live.kml, and then you can use this script to filter it for particular lease or licence types.
The complete listing of live tenements is more than 20,000 tenements, of various types. This is a bloated mess if you’re only interested in, for example, Exploration Licences. Filtering out the other licence types and leaving only the Exploration Licences will cut the list down to 5000 or so, making the dataset much more manageable in tools like Google Earth. In spite of all Google’s resources, Google Earth has some serious bugs which are being ignored, and so it has trouble handling large datasets without crashing.
usage> ./filter_licences.pl Tenements_Live.kml “EXPLORATION LICENCE” > Tenements_Live_Exploration.kml
usage> cat Tenements_Live.kml | ./filter_licences.pl “tenement type” > Tenements_Live_Exploration.kml
Tenement types:
“EXPLORATION LICENCE”
“EXPLORATION LICENCE OFFSHORE”
“CHRISTMAS ISLAND EXPLORATION LICENCE”
“PROSPECTING LICENCE”
“RETENTION LICENCE”
“MISCELLANEOUS LICENCE”
“LICENCE TO TREAT TAILINGS”
“MINING LEASE”
“COAL MINING LEASE”
“MINERAL LEASE”
“MINERAL LEASE S.A.”
“GENERAL PURPOSE LEASE”
“GENERAL PURPOSE LEASE S.A.”
“TEMPORARY RESERVE”
And possibly others.
The resulting output file contains only tenements of the specified type and can be imported into Google Earth.