TerraHS-0.3ContentsIndex
TerraHS.TerraLib.TeDatabase
Contents
The TeDatabase type
The TeDatabasePtr type
The Layers class
Description

A module for supporting a TeDatabase TerraLib class

Instances of this classes represent connections to a database server. It includes the host name, user name and password parameters of the connection. It should be implemented by the drivers to specific database servers as: MySQL, Ado, PostgreSQL or any other server to be used in TerraLib applications.

More information - http://www.terralib.org

Synopsis
data TeDatabase
= TeMySQL String String String String
| TePostgreSQL
type TeDatabasePtr = Ptr TeDatabase
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
The TeDatabase type
data TeDatabase
Constructors
TeMySQL String String String String
TePostgreSQL
show/hide Instances
The TeDatabasePtr type
type TeDatabasePtr = Ptr TeDatabase
The type TeDatabasePtr is a pointer to TeDatabase
The Layers class
class TeDatabases a where
Methods
loadLayer :: Ptr a -> String -> IO TeLayerPtr
Load information about a particular layer
errorMessage :: Ptr a -> IO String
Gets the last error message
loadRaster :: Ptr a -> String -> IO (TeRaster Double)
importRaster :: Ptr a -> String -> TeRaster Double -> IO Bool
importRasterWParameter :: Ptr a -> String -> Double -> TeRaster Double -> IO Bool
show/hide Instances
Produced by Haddock version 0.7