TerraHS-0.3ContentsIndex
TerraHS.TerraLib.TeLayer
Contents
The TeLayer type
The TeLayerPtr type
The Layers class
Description

A module for supporting a TeLayer TerraLib class

In TerraLib, a layer is a collection of geometries that share the same geographical projection, and are related in some way (e.g. a shapefile). A layer has a pointer to a database that effectively stores its atributes and geometries.

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

Synopsis
data TeLayer
= TeLayer String
| TeLayerDb String TeDatabasePtr
type TeLayerPtr = Ptr TeLayer
class Layers l where
name :: Ptr l -> IO String
getRaster :: Ptr l -> IO TeRasterPtr
saveTable :: Ptr l -> TeTable -> IO Bool
addPoints :: Ptr l -> TePointSet -> IO Bool
addLines :: Ptr l -> TeLineSet -> IO Bool
addCells :: Ptr l -> TeCellSet -> IO Bool
addPolygons :: Ptr l -> TePolygonSet -> IO Bool
The TeLayer type
data TeLayer
The type TeLayer represents a geographic layer
Constructors
TeLayer String
TeLayerDb String TeDatabasePtr
show/hide Instances
The TeLayerPtr type
type TeLayerPtr = Ptr TeLayer
The type TeLayerPtr is a pointer to TeLayer
The Layers class
class Layers l where
Methods
name :: Ptr l -> IO String
Returns the layer name
getRaster :: Ptr l -> IO TeRasterPtr
saveTable :: Ptr l -> TeTable -> IO Bool
Saves an attribute table into the database where layer is stored
addPoints :: Ptr l -> TePointSet -> IO Bool
Adds a set of points to a layer
addLines :: Ptr l -> TeLineSet -> IO Bool
addCells :: Ptr l -> TeCellSet -> IO Bool
addPolygons :: Ptr l -> TePolygonSet -> IO Bool
show/hide Instances
Produced by Haddock version 0.7