geojson-types-0.1.1: GeoJSON data types including JSON/BSON conversion.

Copyright(C) 2016 Markus Barenhoff
LicenseBSD-style (see the file LICENSE)
MaintainerMarkus Barenhoff <mbarenh@alios.org>
Stabilityprovisional
PortabilityFunctionalDependencies, TypeFamilies, GADTs RankNTypes
Safe HaskellTrustworthy
LanguageHaskell2010

Data.GeoJSON.Objects

Contents

Description

 

Synopsis

GeoJSON Objects

Position

data Position t Source

Data type to hold a basic xy latlon value. . see also: http://geojson.org/geojson-spec.html#positions

_Position :: BaseType t => Iso' (t, t) (Position t) Source

Iso from/to Position

Point

MultiPoint

Line String

Linear Ring

MultiLineString

Polygon

MultiPolygon

Collection

Geometry Collection

Support types

class BaseType t => HasFlatCoordinates a t | a -> t where Source

Represents datatypes which hold one or more Position objects.

boundingBox :: HasFlatCoordinates a t => Getter a (BoundingBox t) Source

calculate the bounding box of the the given object.

type BaseType t = (Eq t, Ord t, Num t, Show t, FromJSON t, ToJSON t, Val t) Source

type constraint for the base numeric type used in Position