Some utils to make it easier to use Geoscape's Administrative Boundaries
A Python script for creating a clean version of the Suburb-Locality boundaries for presentation or visualisation.
Trims the boundaries to the coastline; fixes state border overlaps and gaps; and thins the boundaries for faster display performance in desktop/mobile browsers and GIS tools.
This process takes ~30-45 mins.
Coastline improvements
State border improvements
The cleaned and thinned localities have a reduced precision of 1-2m; however this is within the general precision of the property boundary data (Geoscape Cadlite) used to create the locality boundaries.
You can run the script to get the result or download the data from here:
Incorporates or developed using Administrative Boundaries © Geoscape Australia licensed by the Commonwealth of Australia under Creative Commons Attribution 4.0 International licence (CC BY 4.0).
- You will need to run the gnaf-loader script to load the required Admin Bdy tables into Postgres
- Postgres 10.x and above
- PostGIS 2.1+
- Python 2.7 or 3.5+ with psycopg 2.6+
Trimming the boundaries to the coastline removes a small number of bay or estuary based localities. These have very few G-NAF addresses.
These localities are:
locality_pid | name | postcode | state | addresses | streets |
---|---|---|---|---|---|
NSW524 | BOTANY BAY | 2019 | NSW | 2 | 12 |
NSW2046 | JERVIS BAY | NSW | 0 | 5 | |
NSW2627 | MIDDLE HARBOUR | 2087 | NSW | 3 | 23 |
NSW3019 | NORTH HARBOUR | NSW | 0 | 10 | |
NSW3255 | PITTWATER | 2105 | NSW | 5 | 31 |
NT26 | BEAGLE GULF | NT | 0 | 0 | |
NT75 | DARWIN HARBOUR | NT | 0 | 0 | |
QLD3395 | UNNAMED LOCALITY | 9999 | QLD | 0 | 2 |