Copyright | (C) 2014-2018 HS-GeoJSON Project |
---|---|
License | BSD-style (see the file LICENSE.md) |
Maintainer | Andrew Newman |
Safe Haskell | None |
Language | Haskell2010 |
See section 2.1 "Geometry Objects" in the GeoJSON Spec.
Synopsis
- newtype GeoPoint = GeoPoint {}
- newtype GeoMultiPoint = GeoMultiPoint {}
- splitGeoMultiPoint :: GeoMultiPoint -> [GeoPoint]
- mergeGeoPoints :: [GeoPoint] -> GeoMultiPoint
- newtype GeoPolygon = GeoPolygon {}
- newtype GeoMultiPolygon = GeoMultiPolygon {}
- splitGeoMultiPolygon :: GeoMultiPolygon -> [GeoPolygon]
- mergeGeoPolygons :: [GeoPolygon] -> GeoMultiPolygon
- newtype GeoLine = GeoLine {}
- newtype GeoMultiLine = GeoMultiLine {}
- splitGeoMultiLine :: GeoMultiLine -> [GeoLine]
- mergeGeoLines :: [GeoLine] -> GeoMultiLine
- data GeospatialGeometry
- unGeoPoint :: Iso' GeoPoint GeoPositionWithoutCRS
- unGeoMultiPoint :: Iso' GeoMultiPoint [GeoPositionWithoutCRS]
- unGeoPolygon :: Iso' GeoPolygon [LinearRing GeoPositionWithoutCRS]
- unGeoMultiPolygon :: Iso' GeoMultiPolygon [[LinearRing GeoPositionWithoutCRS]]
- unGeoLine :: Iso' GeoLine (LineString GeoPositionWithoutCRS)
- unGeoMultiLine :: Iso' GeoMultiLine [LineString GeoPositionWithoutCRS]
- _NoGeometry :: Prism' GeospatialGeometry ()
- _Point :: Prism' GeospatialGeometry GeoPoint
- _MultiPoint :: Prism' GeospatialGeometry GeoMultiPoint
- _Polygon :: Prism' GeospatialGeometry GeoPolygon
- _MultiPolygon :: Prism' GeospatialGeometry GeoMultiPolygon
- _Line :: Prism' GeospatialGeometry GeoLine
- _MultiLine :: Prism' GeospatialGeometry GeoMultiLine
- _Collection :: Prism' GeospatialGeometry [GeospatialGeometry]
Types
newtype GeoMultiPoint Source #
Instances
Eq GeoMultiPoint Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPoint (==) :: GeoMultiPoint -> GeoMultiPoint -> Bool # (/=) :: GeoMultiPoint -> GeoMultiPoint -> Bool # | |
Show GeoMultiPoint Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPoint showsPrec :: Int -> GeoMultiPoint -> ShowS # show :: GeoMultiPoint -> String # showList :: [GeoMultiPoint] -> ShowS # | |
ToJSON GeoMultiPoint Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPoint toJSON :: GeoMultiPoint -> Value # toEncoding :: GeoMultiPoint -> Encoding # toJSONList :: [GeoMultiPoint] -> Value # toEncodingList :: [GeoMultiPoint] -> Encoding # | |
FromJSON GeoMultiPoint Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPoint parseJSON :: Value -> Parser GeoMultiPoint # parseJSONList :: Value -> Parser [GeoMultiPoint] # |
splitGeoMultiPoint :: GeoMultiPoint -> [GeoPoint] Source #
Split GeoMultiPoint coordinates into multiple GeoPoints
mergeGeoPoints :: [GeoPoint] -> GeoMultiPoint Source #
Merge multiple GeoPoints into one GeoMultiPoint
newtype GeoPolygon Source #
Instances
Eq GeoPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoPolygon (==) :: GeoPolygon -> GeoPolygon -> Bool # (/=) :: GeoPolygon -> GeoPolygon -> Bool # | |
Show GeoPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoPolygon showsPrec :: Int -> GeoPolygon -> ShowS # show :: GeoPolygon -> String # showList :: [GeoPolygon] -> ShowS # | |
ToJSON GeoPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoPolygon toJSON :: GeoPolygon -> Value # toEncoding :: GeoPolygon -> Encoding # toJSONList :: [GeoPolygon] -> Value # toEncodingList :: [GeoPolygon] -> Encoding # | |
FromJSON GeoPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoPolygon parseJSON :: Value -> Parser GeoPolygon # parseJSONList :: Value -> Parser [GeoPolygon] # |
newtype GeoMultiPolygon Source #
Instances
Eq GeoMultiPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPolygon (==) :: GeoMultiPolygon -> GeoMultiPolygon -> Bool # (/=) :: GeoMultiPolygon -> GeoMultiPolygon -> Bool # | |
Show GeoMultiPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPolygon showsPrec :: Int -> GeoMultiPolygon -> ShowS # show :: GeoMultiPolygon -> String # showList :: [GeoMultiPolygon] -> ShowS # | |
ToJSON GeoMultiPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPolygon toJSON :: GeoMultiPolygon -> Value # toEncoding :: GeoMultiPolygon -> Encoding # toJSONList :: [GeoMultiPolygon] -> Value # toEncodingList :: [GeoMultiPolygon] -> Encoding # | |
FromJSON GeoMultiPolygon Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiPolygon parseJSON :: Value -> Parser GeoMultiPolygon # parseJSONList :: Value -> Parser [GeoMultiPolygon] # |
splitGeoMultiPolygon :: GeoMultiPolygon -> [GeoPolygon] Source #
Split GeoMultiPolygon coordinates into multiple GeoPolygons
mergeGeoPolygons :: [GeoPolygon] -> GeoMultiPolygon Source #
Merge multiple GeoPolygons into one GeoMultiPolygon
newtype GeoMultiLine Source #
Instances
Eq GeoMultiLine Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiLine (==) :: GeoMultiLine -> GeoMultiLine -> Bool # (/=) :: GeoMultiLine -> GeoMultiLine -> Bool # | |
Show GeoMultiLine Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiLine showsPrec :: Int -> GeoMultiLine -> ShowS # show :: GeoMultiLine -> String # showList :: [GeoMultiLine] -> ShowS # | |
ToJSON GeoMultiLine Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiLine toJSON :: GeoMultiLine -> Value # toEncoding :: GeoMultiLine -> Encoding # toJSONList :: [GeoMultiLine] -> Value # toEncodingList :: [GeoMultiLine] -> Encoding # | |
FromJSON GeoMultiLine Source # | |
Defined in Data.Geospatial.Internal.Geometry.GeoMultiLine parseJSON :: Value -> Parser GeoMultiLine # parseJSONList :: Value -> Parser [GeoMultiLine] # |
splitGeoMultiLine :: GeoMultiLine -> [GeoLine] Source #
Split GeoMultiLine coordinates into multiple GeoLines
mergeGeoLines :: [GeoLine] -> GeoMultiLine Source #
Merge multiple GeoLines into one GeoMultiLine
data GeospatialGeometry Source #
See section 2.1 Geometry Objects in the GeoJSON Spec.
NoGeometry | |
Point GeoPoint | |
MultiPoint GeoMultiPoint | |
Polygon GeoPolygon | |
MultiPolygon GeoMultiPolygon | |
Line GeoLine | |
MultiLine GeoMultiLine | |
Collection [GeospatialGeometry] |
Instances
Eq GeospatialGeometry Source # | |
Defined in Data.Geospatial.Internal.Geometry (==) :: GeospatialGeometry -> GeospatialGeometry -> Bool # (/=) :: GeospatialGeometry -> GeospatialGeometry -> Bool # | |
Show GeospatialGeometry Source # | |
Defined in Data.Geospatial.Internal.Geometry showsPrec :: Int -> GeospatialGeometry -> ShowS # show :: GeospatialGeometry -> String # showList :: [GeospatialGeometry] -> ShowS # | |
ToJSON GeospatialGeometry Source # | encodes Geometry Objects to GeoJSON |
Defined in Data.Geospatial.Internal.Geometry toJSON :: GeospatialGeometry -> Value # toEncoding :: GeospatialGeometry -> Encoding # toJSONList :: [GeospatialGeometry] -> Value # toEncodingList :: [GeospatialGeometry] -> Encoding # | |
FromJSON GeospatialGeometry Source # | decodes Geometry Objects from GeoJSON Aeson doesnt decode "null" into |
Defined in Data.Geospatial.Internal.Geometry parseJSON :: Value -> Parser GeospatialGeometry # parseJSONList :: Value -> Parser [GeospatialGeometry] # |