Norric1Admin / maptemplates

Map templates
0 stars 1 forks source link

Upload new boundaries #11

Open Norric1Admin opened 6 years ago

Norric1Admin commented 6 years ago

To add a new boundary, first locate a site that provides the boundary in GEOJSON or TOPOJSON format (e.g. http://geoportal.statistics.gov.uk/datasets), and copy the link. Open the GEOAPI.py script, and copy across the GEOJSON URL...

response = RQ.get("URL")

Find the output file, and check the first line. If it begins with {"type":"Topology" ... then it's TOPOJSON and can be used. If not, it's GEOJSON and needs to be converted using mapshaper. Once this is complete, rename the file 'geog.json' and save it in the indicator's 'data' folder. Click on 'geog.json' to check if the boundaries are rendering as expected.

(Continues with https://github.com/Norric1Admin/maptemplates/issues/12)