terrahs-0.5: Simple library for GIS Programs in Haskell.Source codeContentsIndex
TerraHS.TerraLib
Synopsis
data TeDatabase
= TeMySQL String String String String
| TePostgreSQL
class TeDatabases a where
loadLayer :: Ptr a -> String -> IO TeLayerPtr
errorMessage :: Ptr a -> IO String
loadRaster :: Ptr a -> String -> IO (TeRaster Double)
importRaster :: Ptr a -> String -> TeRaster Double -> IO Bool
importRasterWParameter :: Ptr a -> String -> Double -> TeRaster Double -> IO Bool
data TeGeometry
= GPt TePoint
| GPg TePolygon
| GLn TeLine2D
| GCl TeCell
data TePoint = TePoint TeCoord2D
data TePolygon = TePolygon [TeLinearRing]
data TeLine2D = TeLine2D [TeCoord2D]
data TeCell = TeCell TeBox Int32 Int32
data TeBox = TeBox Double Double Double Double
data TePointSet = TePointSet [TePoint]
data TePolygonSet = TePolygonSet [TePolygon]
data TeLineSet = TeLineSet [TeLine2D]
data TeCellSet = TeCellSet [TeCell]
data TeSTInstance = TeSTInstance
loadRasterFile :: String -> IO (TeRaster Double)
class Topology a b where
teintersects :: a -> b -> Bool
tetouches :: a -> b -> Bool
tecrosses :: a -> b -> Bool
tedisjoint :: a -> b -> Bool
tewithin :: a -> b -> Bool
teequals :: a -> b -> Bool
teoverlaps :: a -> b -> Bool
tecoveredby :: a -> b -> Bool
tecontains :: a -> b -> Bool
tecontainedBy :: b -> a -> Bool
class Overlay a where
teunion :: a -> a -> [TeGeometry]
tedifference :: a -> a -> [TeGeometry]
teintersection :: a -> a -> [TeGeometry]
Documentation
data TeDatabase Source
Constructors
TeMySQL String String String String
TePostgreSQL
show/hide Instances
class TeDatabases a whereSource
Methods
loadLayer :: Ptr a -> String -> IO TeLayerPtrSource
Load information about a particular layer
errorMessage :: Ptr a -> IO StringSource
Gets the last error message
loadRaster :: Ptr a -> String -> IO (TeRaster Double)Source
importRaster :: Ptr a -> String -> TeRaster Double -> IO BoolSource
importRasterWParameter :: Ptr a -> String -> Double -> TeRaster Double -> IO BoolSource
show/hide Instances
data TeGeometry Source
Constructors
GPt TePoint
GPg TePolygon
GLn TeLine2D
GCl TeCell
show/hide Instances
data TePoint Source
The type TePoint represents 2D Points.
Constructors
TePoint TeCoord2D
show/hide Instances
data TePolygon Source
The type TePolygon represents a 2D polygon . In TerraLib, a 2D polygon consists of an outer ring and a list of inner ring In Haskell, a 2D polygon consists of a list TeLinearRing
Constructors
TePolygon [TeLinearRing]
show/hide Instances
data TeLine2D Source
The type TeLine2D represents a simple 2D line, composed of 2D xy points
Constructors
TeLine2D [TeCoord2D]
show/hide Instances
data TeCell Source
Constructors
TeCell TeBox Int32 Int32
show/hide Instances
data TeBox Source
The type TeBox represents a rectangular box. Used by all geometrical representations in TerraLib Library
Constructors
TeBox Double Double Double Double
show/hide Instances
data TePointSet Source
The type TePointSet represents a sets of 2D Points.
Constructors
TePointSet [TePoint]
show/hide Instances
data TePolygonSet Source
The type TePolygonSet represents a set of 2D polygon .
Constructors
TePolygonSet [TePolygon]
show/hide Instances
data TeLineSet Source
The type TeLineSet is a set of a simple 2D line
Constructors
TeLineSet [TeLine2D]
show/hide Instances
data TeCellSet Source
Constructors
TeCellSet [TeCell]
show/hide Instances
data TeSTInstance Source
The type TeSTInstance represent an instance in a time of a spatial element
Constructors
TeSTInstance
show/hide Instances
loadRasterFile :: String -> IO (TeRaster Double)Source
class Topology a b whereSource
Operators that test topologival relation between two objects.
Methods
teintersects :: a -> b -> BoolSource
tetouches :: a -> b -> BoolSource
tecrosses :: a -> b -> BoolSource
tedisjoint :: a -> b -> BoolSource
tewithin :: a -> b -> BoolSource
teequals :: a -> b -> BoolSource
teoverlaps :: a -> b -> BoolSource
tecoveredby :: a -> b -> BoolSource
tecontains :: a -> b -> BoolSource
tecontainedBy :: b -> a -> BoolSource
show/hide Instances
class Overlay a whereSource
Returns the result of objects overlay
Methods
teunion :: a -> a -> [TeGeometry]Source
tedifference :: a -> a -> [TeGeometry]Source
teintersection :: a -> a -> [TeGeometry]Source
show/hide Instances
Produced by Haddock version 2.4.2