It would be great to have some helper functions to render the zoning filed in the mesh blocks. It's not as accurate as actually planning data from each state, but it could be to do in the mean time. And I'm sure the matplotlib code can be reused for the actual zoning stuff.
Potential issues
The mb_cat filed in mesh blocks isn't great, but it's kind of fun to do. But the long term solution is figuring out how to map the zoning from the valuer general data on too these shape files, or shape files we end up using for properties.
Long term options
13
8
Example
You could do something like this. Fetch data like this
SELECT mb.mb_cat, mb.geometry as geom
FROM non_abs_main_structures.lga_2024 lga
RIGHT JOIN abs_main_structures.meshblock mb ON ST_Intersects(mb.geometry, lga.geometry)
WHERE lga.lga_name ILIKE 'Sydney'
AND (ST_Area(ST_Intersection(lga.geometry, mb.geometry)) / ST_Area(mb.geometry)) > 0.1
Then use helpers like this to render the legend and plot.
It would be great to have some helper functions to render the
zoning
filed in the mesh blocks. It's not as accurate as actually planning data from each state, but it could be to do in the mean time. And I'm sure thematplotlib
code can be reused for the actual zoning stuff.Potential issues
The
mb_cat
filed in mesh blocks isn't great, but it's kind of fun to do. But the long term solution is figuring out how to map the zoning from the valuer general data on too these shape files, or shape files we end up using for properties.Long term options
13
8
Example
You could do something like this. Fetch data like this
Then use helpers like this to render the legend and plot.