GithubHelp home page GithubHelp logo

tobiasziegler / nswpol-maps-2013 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27.53 MB

A collection of GeoJSON and TopoJSON files representing NSW state electoral boundaries

License: MIT License

JavaScript 100.00%

nswpol-maps-2013's Introduction

nswpol-maps-2013

A collection of GeoJSON and TopoJSON files representing NSW state electoral boundaries from the 2013 redistribution. These maps show the boundaries as they were at the 2015 and 2019 state elections. The files have been created by transforming the MapInfo Interchange Format (.mif/.mid) files provided by the NSW Electoral Commission.

The original data files are copyright © State of New South Wales through the Office of New South Wales Electoral Commission.

Getting Started

The map files in this collection are made available in two formats under the geojson and topojson directories. If you're not familiar with those formats and the differences, some starting points for information are the GeoJSON specification and the TopoJSON documentation.

You can clone or download the full repository, or download just the specific map file(s) you're interested in using.

About the Project

All of the code used to generate the map files is available in this repository. You don't need to run any of that code to make use of the maps, but it's available for reproducibility, debugging and extension of the project.

If you want to run the code to (re-)generate the map files then you'll need to have Node.js and the ogr2ogr command line tool, which is part of the GDAL (Geospatial Data Abstraction Library), installed on your system.

From a command line prompt in the project directory, you can rebuild the maps with the following steps:

  1. npm install to install the project dependencies.
  2. npm run download to download the MapInfo files from the NSWEC website. NB: The NSW Electoral Commission launched a new website in late 2018, and at this stage it doesn't appear that the map files are available for download from the new site. Until a new public link is available, the download.js script won't work. To build the transformed map files in the next step, you'll need to obtain a copy of the NSWEc source file (GIS_Files.zip) and extract its contents (DeterminedBoundaries2013.MID and DeterminedBoundaries2013.mif) into a download directory within this project's base directory. Contact me if you need a copy of the original file.
  3. npm run build to transform the original files to GeoJSON and TopoJSON.

The project uses ogr2ogr to convert the original MapInfo files to an equivalent GeoJSON file, and then uses Mapshaper for all subsequent transformations.

nswpol-maps-2013's People

Contributors

tobiasziegler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.