Git Product home page Git Product logo

download-maps12's Introduction

Download Mexican maps

You'll need to have wget, gdal, and R installed to download and create the maps. Then just run

$ make

If something went wrong with the downloading, use:

$ make clean

and try again after a few hours

Since the scripts download a whole bunch of maps it may take a while to finish

Output

In the map-out directory you'll find

  • distritos: Shapefile of the electoral distritos (districts)
  • secciones-inegi: Shapefile of electoral secciones (precincts) with both the ife and inegi codes for the municipalities each seccion belongs to
  • estados: Shapefile of the Mexican states
  • localidades: Shapefiles of the rural localities and the polygons of the urban ones
  • municipios: Shapefile of the counties of Mexico
  • rdata-secciones: serialized secciones (precincts) map as an R object

Since the IFE uses a different coding standard for the municipalities of Mexico than the INEGI, I've recoded the municipality codes so that they match the ones the INEGI uses.

Ecatepec, México according to the INEGI is 15 033, while according to the IFE it's 15 034
Guadalajara, Jalisco according to the INEGI is 14 039, while according to the IFE it's 14 041

These codes are only available for the secciones electorales (precincts) shapefile and they are contained in the variables:

  • MUN_INEGI: The inegi municipio codes
  • MUN_IFE: The original ife municipio codes that came with the file

The codebook for the the census data that comes with the shapefiles is in the FD_SECC_IFE.pdf file and the ife and inegi codes are in the ife.to.inegi.csv file

Author:

Diego Valle-Jones

download-maps12's People

Contributors

diegovalle avatar

Watchers

Carlos Hugo Gonzalez Castell avatar James Cloos 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.