terrahs-0.5: Simple library for GIS Programs in Haskell.Source codeContentsIndex
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 Source
The type TeLayer represents a geographic layer
Constructors
TeLayer String
TeLayerDb String TeDatabasePtr
show/hide Instances
The TeLayerPtr type
type TeLayerPtr = Ptr TeLayerSource
The type TeLayerPtr is a pointer to TeLayer
The Layers class
class Layers l whereSource
Methods
name :: Ptr l -> IO StringSource
Returns the layer name
getRaster :: Ptr l -> IO TeRasterPtrSource
saveTable :: Ptr l -> TeTable -> IO BoolSource
Saves an attribute table into the database where layer is stored
addPoints :: Ptr l -> TePointSet -> IO BoolSource
Adds a set of points to a layer
addLines :: Ptr l -> TeLineSet -> IO BoolSource
addCells :: Ptr l -> TeCellSet -> IO BoolSource
addPolygons :: Ptr l -> TePolygonSet -> IO BoolSource
show/hide Instances
Produced by Haddock version 2.4.2