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.2 Feature Objects of the GeoJSON spec. Parameterised on the property type
Synopsis
- data GeoFeature a = GeoFeature {}
- bbox :: forall a. Lens' (GeoFeature a) (Maybe BoundingBoxWithoutCRS)
- geometry :: forall a. Lens' (GeoFeature a) GeospatialGeometry
- properties :: forall a a. Lens (GeoFeature a) (GeoFeature a) a a
- featureId :: forall a. Lens' (GeoFeature a) (Maybe FeatureID)
Types
data GeoFeature a Source #
See Section 2.2 Feature Objects of the GeoJSON spec. Parameterised on the property type
Instances
Eq a => Eq (GeoFeature a) Source # | |
Defined in Data.Geospatial.Internal.GeoFeature (==) :: GeoFeature a -> GeoFeature a -> Bool # (/=) :: GeoFeature a -> GeoFeature a -> Bool # | |
Show a => Show (GeoFeature a) Source # | |
Defined in Data.Geospatial.Internal.GeoFeature showsPrec :: Int -> GeoFeature a -> ShowS # show :: GeoFeature a -> String # showList :: [GeoFeature a] -> ShowS # | |
ToJSON a => ToJSON (GeoFeature a) Source # | Encodes Feature objects to GeoJSON |
Defined in Data.Geospatial.Internal.GeoFeature toJSON :: GeoFeature a -> Value # toEncoding :: GeoFeature a -> Encoding # toJSONList :: [GeoFeature a] -> Value # toEncodingList :: [GeoFeature a] -> Encoding # | |
FromJSON a => FromJSON (GeoFeature a) Source # | Decodes Feature objects from GeoJSON |
Defined in Data.Geospatial.Internal.GeoFeature parseJSON :: Value -> Parser (GeoFeature a) # parseJSONList :: Value -> Parser [GeoFeature a] # |
Lenses
bbox :: forall a. Lens' (GeoFeature a) (Maybe BoundingBoxWithoutCRS) Source #
geometry :: forall a. Lens' (GeoFeature a) GeospatialGeometry Source #
properties :: forall a a. Lens (GeoFeature a) (GeoFeature a) a a Source #