packages feed

vectortiles-1.5.1: vectortiles.cabal

cabal-version:      2.2
name:               vectortiles
version:            1.5.1
synopsis:           GIS Vector Tiles, as defined by Mapbox.
description:
  GIS Vector Tiles, as defined by Mapbox.
  This library implements version 2.1 of the official Mapbox spec, as defined
  here: <https://github.com/mapbox/vector-tile-spec/tree/master/2.1>
  .
  Note that currently this library ignores top-level protobuf extensions,
  /Value/ extensions, and /UNKNOWN/ geometries.

category:           Geography
homepage:           https://github.com/fosskers/vectortiles
author:             Colin Woodbury
maintainer:         colin@fosskers.ca
license:            BSD-3-Clause
license-file:       LICENSE
build-type:         Simple
extra-source-files:
  test/roads.mvt
  test/onepoint.mvt
  test/linestring.mvt
  test/polygon.mvt
  test/clearlake.mvt
  README.md
  CHANGELOG.md

common commons
  default-language: Haskell2010
  ghc-options:
    -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
    -Wredundant-constraints -Widentities

  build-depends:
    , base        >=4.9  && <5
    , bytestring
    , vector      >=0.11 && <0.13

library
  import:          commons
  hs-source-dirs:  lib
  build-depends:
    , containers
    , deepseq                      ^>=1.4
    , hashable
    , mtl
    , protocol-buffers             ^>=2.4
    , protocol-buffers-descriptor  ^>=2.4
    , text                         ^>=1.2
    , transformers                 ^>=0.5
    , unordered-containers

  exposed-modules:
    Geography.VectorTile
    Geography.VectorTile.Internal

  other-modules:
    Geography.VectorTile.Geometry
    Geography.VectorTile.Protobuf.Internal.Vector_tile
    Geography.VectorTile.Protobuf.Internal.Vector_tile.Tile
    Geography.VectorTile.Protobuf.Internal.Vector_tile.Tile.Feature
    Geography.VectorTile.Protobuf.Internal.Vector_tile.Tile.GeomType
    Geography.VectorTile.Protobuf.Internal.Vector_tile.Tile.Layer
    Geography.VectorTile.Protobuf.Internal.Vector_tile.Tile.Value
    Geography.VectorTile.Util
    Geography.VectorTile.VectorTile

test-suite vectortiles-test
  import:         commons
  type:           exitcode-stdio-1.0
  main-is:        Test.hs
  hs-source-dirs: test
  ghc-options:    -threaded -with-rtsopts=-N
  build-depends:
    , containers
    , protocol-buffers  ^>=2.4
    , tasty             >=0.10.1.2
    , tasty-hunit       >=0.9.2
    , text              ^>=1.2
    , vectortiles

benchmark vectortiles-bench
  import:         commons
  type:           exitcode-stdio-1.0
  main-is:        Bench.hs
  hs-source-dirs: bench
  ghc-options:    -threaded -with-rtsopts=-N -O2
  build-depends:
    , criterion             >=1.1 && <1.6
    , microlens             ^>=0.4
    , microlens-platform    >=0.3 && < 0.5
    , unordered-containers
    , vectortiles