terrahs-0.7: A library for GIS Programs in Haskell.Source codeContentsIndex
TerraHS.TerraLib.TeLayer
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 TeDatum = TeSAD69
type LongO = Double
data TeProjection
= TeNoProjection
| TeLatLong TeDatum
| TeUTM TeDatum LongO
type TeProjectionPtr = Ptr TeProjection
class Layers l where
name :: Ptr l -> IO String
loadLayer :: TeDatabasePtr -> String -> IO (Ptr l)
getPolygons :: Ptr l -> IO [TeGeometry]
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
data TeLayer = TeLayer String TeDatabasePtr
type TeLayerPtr = Ptr TeLayer
tedatabase_loadLayer :: TeDatabasePtr -> TeLayerPtr -> IO Bool
h_telayer_gettepolygons :: TeLayerPtr -> TePolygonSetPtr -> IO ()
telayer_name :: TeLayerPtr -> IO CString
h_telayer_new :: CString -> IO TeLayerPtr
telayer_addcolumn :: TeLayerPtr -> CString -> IO ()
telayer_insertvalue :: TeLayerPtr -> CString -> CString -> CString -> IO ()
createAttributeTable :: TeLayerPtr -> TeTablePtr -> IO Bool
telayer_saveattributetable :: TeLayerPtr -> TeTablePtr -> IO Bool
tedatabase_newLayer :: TeDatabasePtr -> CString -> IO TeLayerPtr
telayer_addpoints :: TeLayerPtr -> TePointSetPtr -> IO Bool
telayer_addlines :: TeLayerPtr -> TeLineSetPtr -> IO Bool
telayer_addcells :: TeLayerPtr -> TeCellSetPtr -> IO Bool
telayer_addpolygons :: TeLayerPtr -> TePolygonSetPtr -> IO Bool
telayer_setprojection :: TeLayerPtr -> TeProjectionPtr -> IO ()
tedatabase_newLayer2 :: TeDatabasePtr -> CString -> TeProjectionPtr -> IO TeLayerPtr
telatlong_new :: CString -> IO TeProjectionPtr
teutm_new :: CString -> Double -> IO TeProjectionPtr
Documentation
data TeDatum Source
Constructors
TeSAD69
show/hide Instances
type LongO = DoubleSource
data TeProjection Source
Constructors
TeNoProjection
TeLatLong TeDatum
TeUTM TeDatum LongO
show/hide Instances
type TeProjectionPtr = Ptr TeProjectionSource
class Layers l whereSource
Methods
name :: Ptr l -> IO StringSource
Returns the layer name
loadLayer :: TeDatabasePtr -> String -> IO (Ptr l)Source
Load information about a particular layer
getPolygons :: Ptr l -> IO [TeGeometry]Source
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
data TeLayer Source
The type TeLayer represents a geographic layer data TeLayer = TeLayer String | TeLayerDb String TeDatabasePtr deriving (Show)
Constructors
TeLayer String TeDatabasePtr
show/hide Instances
type TeLayerPtr = Ptr TeLayerSource
The type TeLayerPtr is a pointer to TeLayer
tedatabase_loadLayer :: TeDatabasePtr -> TeLayerPtr -> IO BoolSource
h_telayer_gettepolygons :: TeLayerPtr -> TePolygonSetPtr -> IO ()Source
telayer_name :: TeLayerPtr -> IO CStringSource
h_telayer_new :: CString -> IO TeLayerPtrSource
telayer_addcolumn :: TeLayerPtr -> CString -> IO ()Source
telayer_insertvalue :: TeLayerPtr -> CString -> CString -> CString -> IO ()Source
createAttributeTable :: TeLayerPtr -> TeTablePtr -> IO BoolSource
telayer_saveattributetable :: TeLayerPtr -> TeTablePtr -> IO BoolSource
tedatabase_newLayer :: TeDatabasePtr -> CString -> IO TeLayerPtrSource
telayer_addpoints :: TeLayerPtr -> TePointSetPtr -> IO BoolSource
telayer_addlines :: TeLayerPtr -> TeLineSetPtr -> IO BoolSource
telayer_addcells :: TeLayerPtr -> TeCellSetPtr -> IO BoolSource
telayer_addpolygons :: TeLayerPtr -> TePolygonSetPtr -> IO BoolSource
telayer_setprojection :: TeLayerPtr -> TeProjectionPtr -> IO ()Source
tedatabase_newLayer2 :: TeDatabasePtr -> CString -> TeProjectionPtr -> IO TeLayerPtrSource
telatlong_new :: CString -> IO TeProjectionPtrSource
teutm_new :: CString -> Double -> IO TeProjectionPtrSource
Produced by Haddock version 2.4.2