hgis: Package and command-line for GIS with Haskell

[ bsd3, library, web ] [ Propose Tags ]

Package containting functions to make graphs, read shapefiles, and compute areas/perimeters of geographic features.

[Skip to Readme]
Versions [faq],,,,,,,,,,,,,,,,,,
Dependencies ansi-wl-pprint (>=, base (>= && <5), binary (>=, bytestring (>=, Chart (>=1.8.2), Chart-cairo (>=1.8.2), Chart-diagrams (>=1.8.2), colour (>=2.3.3), composition (>=, data-binary-ieee754 (>=0.4.4), data-default (>=, directory (>=, filepath (>=, hgis (>=, lens (>=4.15.1), monad-loops (>=0.4.3), optparse-applicative (>=, transformers (>= [details]
License BSD-3-Clause
Copyright Copyright: (c) 2016 Vanessa McHale
Author Vanessa McHale
Maintainer tmchale@wisc.edu
Category Web
Home page https://github.com/vmchale/hgis#readme
Source repo head: git clone https://github.com/vmchale/hgis
Uploaded by vmchale at Sat Mar 18 18:40:12 UTC 2017
Distributions NixOS:
Executables hgis
Downloads 5573 total (464 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2017-03-18 [all 3 reports]


  • GIS
    • Exe
      • GIS.Exe.Opt
      • GIS.Exe.OptCairo
    • Graphics
      • GIS.Graphics.PlotPNG
      • GIS.Graphics.PlotSVG
    • GIS.Hylo
    • Math
      • GIS.Math.Projections
      • GIS.Math.Spherical



Enable build with llvm backend


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for hgis-

[back to package description]

HGIS (aichgis)


This is a library and command-line tool for GIS.

Currently, it generates maps and computes perimters, areas, and compactness. You can use it to look at your congressional district for evidence of gerrymandering.


hgis is best installed with stack. Try

stack install hgis


stack install hgis --flag hgis:-cairo

to install with bindings cairo library, which will enable outputs as PNGs.

You can also clone this repository and type stack build if you want to start hacking.



From the command line, type

hgis map --output OUTPUT.svg FILE.shp

to read a shapefile and write an svg.

You can use e.g.

hgis map --output OUTPUT.svg --projection bonne FILE.shp

to force the use of the Bonne projection.




Haddock documentation can be accessed through hackage.