Skip to content

dexmcmillan/cartogrammer

Repository files navigation

Cartogrammer

Turn shapefiles into grids of evenly spaced squares for use in grid cartograms.

See an example useage here.

Installation

Install directly from the github release.

pip install https://github.com/dexmcmillan/cartogrammer/releases/download/v0.0.2/cartogrammer-0.0.2-py3-none-any.whl

Usage

Cartogrammer exposes one class, Cartogram. Implement like so:

import cartogrammer

cartogram = cartogrammer.Cartogram(shapefile_path, export)

print(cartogram.data)

Arguments

file (str): The filepath to the shapefile (in .zip format) that you'd like to convert.

export (str): The filepath and name of the exported file.

About

Turn shapefiles into grids of evenly spaced squares for use in grid cartograms.

Topics

Resources

Stars

Watchers

Forks

Languages