Creating a simplified GeoJSON map of Prince Edward Island lots

Peter Rukavina

Download the ESRI Shapefile version of the lots from the PEI GIS Catalog and open the resulting lot_township_polygon.shp in QGIS.

In QGIS, right-click on the layer in the layer browser, and select:

  • Format: ESRI Shapefile
  • Save as (filename): pei-lots-wgs84.shp
  • Encoding: System
  • CRS: Selected CRS (then click Browse below, and select WGS 84)

Your “Save vector layer as…” dialog should look something like this:

Close and reopen QGIS and open the newly-created pei-lots-wgs84.shp file, which should look like this:

If you save this as a GEOJSON file at this point, because it’s a very-detailed map the size of the file will be multi-megabytes.  We want to create a smaller file, by simplifying the geometer of the lots.

To do this, select Vector menu > Geometry tools > Simplify geometries in QGIS, enter a new file name, pei-lots-wgs84-simplified.shp, using the default tolerance of 0.0001 and click OK to process.

The result will be a new, simpified Shapefile that you can now export to a GeoJSON file; load the new, simplified layer, then right-click on the layer in the layer browser, and select:

  • Format: GeoJSON
  • Save as (filename): lots.geojson
  • Encoding: System
  • CRS: Layer CRS

You can load the resulting GeoJSON file into geojson.io – it’s about 1.9MB.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search