| Copyright | (c) Azavea 2016 |
|---|---|
| License | Apache 2 |
| Maintainer | Colin Woodbury <cwoodbury@azavea.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Geography.VectorTile.Geometry
Contents
Description
Geometries
Types
Points in space. Using "Record Pattern Synonyms" here allows us to treat
Point like a normal ADT, while its implementation remains an unboxed
(Int,Int).
newtype LineString #
Constructors
| LineString | |
Instances
| Eq LineString # | |
| Show LineString # | |
| Generic LineString # | |
| NFData LineString # | |
| ProtobufGeom LineString # | A valid A |
| type Rep LineString # | |
A polygon aware of its interior rings.
Instances
| Eq Polygon # | |
| Show Polygon # | |
| Generic Polygon # | |
| NFData Polygon # | |
| ProtobufGeom Polygon # | A valid An Exterior Ring, followed by 0 or more Interior Rings. Any Ring must have a Performs no sanity checks for malformed Interior Rings. |
| type Rep Polygon # | |
Operations
The area of a Polygon is the difference between the areas of its
outer ring and inner rings.