terrahs-0.5: Simple library for GIS Programs in Haskell.Source codeContentsIndex
Algebras.Base.GeoObjects
Contents
The TeGeoObject type
The TeGeoObjects class
The Value type
The Attribute type
The Attributes class
Synopsis
data TeGeoObject = TeGeoObject ObjectId [Attribute] [TeGeometry]
class (Num n, Points p n, Lines l n, Polygons pg l n, Geometries g pg l p n, Ids i, Values v, Attributes at v) => GeoObjects a i at v g pg l p n | a -> i at v g pg l p n where
getId :: a -> i
getAttributes :: a -> [at]
getGeometries :: a -> [g]
data Value
= StValue String
| DbValue Double
| InValue Int32
| Undefined
data Attribute = Attr (String, Value)
class Values v => Attributes a v | a -> v where
getName :: a -> String
getValue :: a -> v
getValuebyName :: [Attribute] -> String -> Value
The TeGeoObject type
data TeGeoObject Source
Constructors
TeGeoObject ObjectId [Attribute] [TeGeometry]
show/hide Instances
The TeGeoObjects class
class (Num n, Points p n, Lines l n, Polygons pg l n, Geometries g pg l p n, Ids i, Values v, Attributes at v) => GeoObjects a i at v g pg l p n | a -> i at v g pg l p n whereSource
Methods
getId :: a -> iSource
Returns the object identification
getAttributes :: a -> [at]Source
Returns the attributes list from a geoobject
getGeometries :: a -> [g]Source
Returns the geometries list from a geoobject
show/hide Instances
The Value type
data Value Source
Constructors
StValue String
DbValue Double
InValue Int32
Undefined
show/hide Instances
The Attribute type
data Attribute Source
Constructors
Attr (String, Value)
show/hide Instances
The Attributes class
class Values v => Attributes a v | a -> v whereSource
Methods
getName :: a -> StringSource
getValue :: a -> vSource
show/hide Instances
getValuebyName :: [Attribute] -> String -> ValueSource
Produced by Haddock version 2.4.2