Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module to transform shapefiles.
Synopsis
- districtArea :: [District] -> String
- districtPerimeter :: [District] -> String
- districtCompactness :: [District] -> String
- districtToMapP :: Projection -> [District] -> Map
- districtToMapLensP :: Show a => Projection -> Lens' District a -> [District] -> Map
- districtToMapLens :: Show a => Lens' District a -> [District] -> Map
- districtToMap :: [District] -> Map
- districtToMapFilesP :: Projection -> [District] -> [Map]
- getDistricts :: FilePath -> IO (Maybe [District])
- getPolygon :: RecContents -> [Polygon]
Documentation
districtArea :: [District] -> String Source #
Get the areas of various objects and return a string suitable for printing
districtPerimeter :: [District] -> String Source #
Get the perimeters of various objects and return a string suitable for printing
districtCompactness :: [District] -> String Source #
Label with relative compactness
districtToMapP :: Projection -> [District] -> Map Source #
Given a projection and lists of districts, draw a map.
districtToMapLensP :: Show a => Projection -> Lens' District a -> [District] -> Map Source #
Given a projection and lists of districts, draw a map, with labels determined by a lens
districtToMapLens :: Show a => Lens' District a -> [District] -> Map Source #
Given a list of districts, draw a map, with labels determined by a lens.
districtToMap :: [District] -> Map Source #
Given a list of districts, draw a map.
districtToMapFilesP :: Projection -> [District] -> [Map] Source #
Given a projection and list of districts, return a list of maps.
getDistricts :: FilePath -> IO (Maybe [District]) Source #
Given the path to a shapefile, return a list of districts, if it contains them.
getPolygon :: RecContents -> [Polygon] Source #
Helper function for extracting from shapefiles.