Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a good writeup on how to generate geoJSON from shapefiles here<br/> <a href="http://vallandingham.me/shapefile_to_geojson.html" rel="noreferrer">http://vallandingham.me/shapefile_to_geojson.html</a></p> <p>The steps below should take you from start to finish:</p> <ol> <li><p>Install the Quantum GIS framework <a href="http://www.qgis.org/e/qgis" rel="noreferrer">http://www.qgis.org/e/qgis</a>.<br/> If you are on Mac OS X, you can use this version <a href="http://www.kyngchaos.com/software" rel="noreferrer">http://www.kyngchaos.com/software</a><br/> This will give you the ogr2ogr utility used for converting shapefiles to geoJSON</p></li> <li><p>Download the shapefiles for your country from here <a href="http://www.gadm.org/country" rel="noreferrer">http://www.gadm.org/country</a> and unzip</p></li> <li><p>For Canada, and possibly other countries, the shapefile with suffix 0 is for the country boundary and the suffix 1 is for the internal regions. Not sure if this naming is consistent across countries.</p></li> <li><p>Upload the region level shapefile to MapShaper <a href="http://mapshaper.com/test/MapShaper.swf" rel="noreferrer">http://mapshaper.com/test/MapShaper.swf</a><br/> You can skip this step if you don't care to optimize the size of your resulting geoJSON</p></li> <li><p>Set the 'simplification level' slider in MapShaper to the desired level and export the simplified shapefile as 'Shapefile - Polygons'</p></li> <li><p>Download .shp and .shx file to the local directory where you unzipped the original shapefiiles, replace the original files with the simplified ones.</p></li> <li><p>Navigate to the local directory and run the command below, replacing <em>&lt;shapefile&gt;</em> with the actual name of the shapefile you want to convert.</p> <p><em>ogr2ogr -f geoJSON regions.json &lt;shapefile&gt;.shp</em></p></li> </ol> <p>You should now have the regions for your country in geoJSON format. Check to make sure there are paths defined in regions.json and that property fields were maintained (ex. region name).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload