Generating townland geometries from open data for WME
Previous text
In order to facilitate the addition of townlands, I have been looking into a way to show townland boundaries in WME. This is possible because data.gov.ie provides open data sets with townland geometry in them. However, these files are very large and often impossible to work with in WME.
To get around this, I have written a script to extract a county's set of townlands that can be loaded into WME on its own (without the rest of the country) in order to improve performance.
Performance is still an issue for larger counties, so I am looking to split these files up further, possibly into half counties.
The script is written in Python (this may be ported to another language in the future to improve its performance), and it accepts both generalised and ungeneralised geoJSON files provided by data.gov.ie.
It is worth noting that counties in Northern Ireland aren't included in the datasets, so they are therefore not included as counties in the script.
The script can be found on GitHub here.
Usage: Just run the script in a terminal window. It will guide you through the rest.
I haven't got a chance yet properly test it yet.
Dependencies: ijson and simplejson (these are more performant than the built-in python equivalents)
Both can be installed with in your virtual environment.
To get around this, I have written a script to extract a county's set of townlands that can be loaded into WME on its own (without the rest of the country) in order to improve performance.
Performance is still an issue for larger counties, so I am looking to split these files up further, possibly into half counties.
The script is written in Python (this may be ported to another language in the future to improve its performance), and it accepts both generalised and ungeneralised geoJSON files provided by data.gov.ie.
It is worth noting that counties in Northern Ireland aren't included in the datasets, so they are therefore not included as counties in the script.
The script can be found on GitHub here.
Usage: Just run the script in a terminal window. It will guide you through the rest.
I haven't got a chance yet properly test it yet.
Dependencies: ijson and simplejson (these are more performant than the built-in python equivalents)
Both can be installed with
Code: Select all
pip3 install <package>
Re: displaying townlands in WME