Copyright | (C) 2014-2019 HS-GeoJSON Project |
---|---|
License | BSD-style (see the file LICENSE.md) |
Maintainer | Andrew Newman |
Safe Haskell | None |
Language | Haskell2010 |
Basic types for GeoJSON representations.
Synopsis
- type Latitude = Double
- type Longitude = Double
- type Easting = Double
- type Northing = Double
- type Altitude = Double
- data GeoPositionWithoutCRS
- retrieveXY :: GeoPositionWithoutCRS -> PointXY
- data PointXY = PointXY {}
- data PointXYZ = PointXYZ {}
- data PointXYZM = PointXYZM {}
- newtype DoubleArray = DoubleArray [Double]
- class HasGeoPositionWithoutCRS c where
- type Name = Text
- type Code = Int
- type Href = Text
- type FormatString = Text
- type ProjectionType = Text
- data BoundingBoxWithoutCRS
- data FeatureID
Coordinate types
data GeoPositionWithoutCRS Source #
Instances
(GeoPositionWithoutCRS
is a catch all for indeterminate CRSs and for expression of positions
before a CRS has been determined
Instances
Eq PointXY Source # | |
Show PointXY Source # | |
Generic PointXY Source # | |
NFData PointXY Source # | |
Defined in Data.Geospatial.Internal.BasicTypes | |
type Rep PointXY Source # | |
Defined in Data.Geospatial.Internal.BasicTypes type Rep PointXY = D1 (MetaData "PointXY" "Data.Geospatial.Internal.BasicTypes" "geojson-4.0.2-EXHv8i4JQwXM7d3a9DXxR" False) (C1 (MetaCons "PointXY" PrefixI True) (S1 (MetaSel (Just "_xyX") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "_xyY") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double))) |
Instances
Eq PointXYZ Source # | |
Show PointXYZ Source # | |
Generic PointXYZ Source # | |
NFData PointXYZ Source # | |
Defined in Data.Geospatial.Internal.BasicTypes | |
type Rep PointXYZ Source # | |
Defined in Data.Geospatial.Internal.BasicTypes type Rep PointXYZ = D1 (MetaData "PointXYZ" "Data.Geospatial.Internal.BasicTypes" "geojson-4.0.2-EXHv8i4JQwXM7d3a9DXxR" False) (C1 (MetaCons "PointXYZ" PrefixI True) (S1 (MetaSel (Just "_xyzX") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: (S1 (MetaSel (Just "_xyzY") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "_xyzZ") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double)))) |
Instances
Eq PointXYZM Source # | |
Show PointXYZM Source # | |
Generic PointXYZM Source # | |
NFData PointXYZM Source # | |
Defined in Data.Geospatial.Internal.BasicTypes | |
type Rep PointXYZM Source # | |
Defined in Data.Geospatial.Internal.BasicTypes type Rep PointXYZM = D1 (MetaData "PointXYZM" "Data.Geospatial.Internal.BasicTypes" "geojson-4.0.2-EXHv8i4JQwXM7d3a9DXxR" False) (C1 (MetaCons "PointXYZM" PrefixI True) ((S1 (MetaSel (Just "_xyzmX") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "_xyzmY") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double)) :*: (S1 (MetaSel (Just "_xyzmZ") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "_xyzmM") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double)))) |
newtype DoubleArray Source #
Instances
class HasGeoPositionWithoutCRS c where Source #
CRS Reference types
type FormatString = Text Source #
type ProjectionType = Text Source #
Feature Types
data BoundingBoxWithoutCRS Source #
See Section 4 Bounding Boxes of the GeoJSON spec, The length of the list/array must be 2*n where n is the dimensionality of the position type for the CRS with min values first followed by the max values, wich both the min/max sets following the same axis order as the CRS, e.g for WGS84: minLongitude, minLatitude, maxLongitude, maxLatitude The spec mentions that it can be part of a geometry object too but doesnt give an example, This implementation will ignore bboxes on Geometry objects, they can be added if required.
BoundingBoxWithoutCRSXY PointXY PointXY | |
BoundingBoxWithoutCRSXYZ PointXYZ PointXYZ | |
BoundingBoxWithoutCRSXYZM PointXYZM PointXYZM |
Instances
Instances
Eq FeatureID Source # | |
Show FeatureID Source # | |
Generic FeatureID Source # | |
ToJSON FeatureID Source # | |
Defined in Data.Geospatial.Internal.BasicTypes | |
FromJSON FeatureID Source # | |
NFData FeatureID Source # | |
Defined in Data.Geospatial.Internal.BasicTypes | |
type Rep FeatureID Source # | |
Defined in Data.Geospatial.Internal.BasicTypes type Rep FeatureID = D1 (MetaData "FeatureID" "Data.Geospatial.Internal.BasicTypes" "geojson-4.0.2-EXHv8i4JQwXM7d3a9DXxR" False) (C1 (MetaCons "FeatureIDText" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "FeatureIDNumber" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) |