terrahs-0.5: Simple library for GIS Programs in Haskell.
Source code
Contents
Index
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
]
Instances
Show
TeGeoObject
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
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
where
Source
Methods
getId
:: a -> i
Source
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
Instances
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
The
Value
type
data
Value
Source
Constructors
StValue
String
DbValue
Double
InValue
Int32
Undefined
Instances
Eq
Value
Num
Value
Show
Value
Values
Value
Attributes
Attribute
Value
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
The
Attribute
type
data
Attribute
Source
Constructors
Attr
(
String
,
Value
)
Instances
Show
Attribute
Attributes
Attribute
Value
GeoObjects
TeGeoObject
ObjectId
Attribute
Value
TeGeometry
TePolygon
TeLine2D
TePoint
Double
The
Attributes
class
class
Values
v =>
Attributes
a v | a -> v
where
Source
Methods
getName
:: a ->
String
Source
getValue
:: a -> v
Source
Instances
Attributes
Attribute
Value
Attributes
Attribute
Value
getValuebyName
:: [
Attribute
] ->
String
->
Value
Source
Produced by
Haddock
version 2.4.2