Copyright | (C) Richard Cook, 2016 |
---|---|
License | MIT |
Maintainer | rcook@rcook.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
A high-level API for interoperating with GEOS C API which includes automatic management of lifetimes of objects such as readers, writers and geometries.
For the low-level FFI bindings, see Data.Geolocation.GEOS.Imports.
- data Context
- data CoordinateSequence
- data Geometry
- data GeometryTypeId
- data Reader
- data Writer
- area :: Geometry -> IO (Maybe Double)
- coordinateSequence :: Geometry -> IO CoordinateSequence
- envelope :: Geometry -> IO Geometry
- exteriorRing :: Geometry -> IO Geometry
- geometryTypeId :: Geometry -> IO GeometryTypeId
- getGeometry :: Geometry -> Int -> IO Geometry
- getNumGeometries :: Geometry -> IO Int
- getSize :: CoordinateSequence -> IO (Maybe Word)
- getX :: CoordinateSequence -> Word -> IO (Maybe Double)
- getY :: CoordinateSequence -> Word -> IO (Maybe Double)
- getZ :: CoordinateSequence -> Word -> IO (Maybe Double)
- intersection :: Geometry -> Geometry -> IO Geometry
- isEmpty :: Geometry -> IO Bool
- mkReader :: Context -> IO Reader
- mkWriter :: Context -> IO Writer
- readGeometry :: Reader -> String -> IO Geometry
- version :: IO String
- withGEOS :: (Context -> IO a) -> IO a
- writeGeometry :: Writer -> Geometry -> IO String
Documentation
data CoordinateSequence Source
References a GEOS coordinate sequence
data GeometryTypeId Source
Represents a GEOS geometry type ID
coordinateSequence :: Geometry -> IO CoordinateSequence Source
Returns a CoordinateSequence
from the supplied Geometry
exteriorRing :: Geometry -> IO Geometry Source
geometryTypeId :: Geometry -> IO GeometryTypeId Source
Returns type ID of a Geometry
instance
getX :: CoordinateSequence -> Word -> IO (Maybe Double) Source
Gets an "x" ordinate value from a coordinate sequence
getY :: CoordinateSequence -> Word -> IO (Maybe Double) Source
Gets a "y" ordinate value from a coordinate sequence
getZ :: CoordinateSequence -> Word -> IO (Maybe Double) Source
Gets a "z" ordinate value from a coordinate sequence
isEmpty :: Geometry -> IO Bool Source
Returns value indicating if specified Geometry
instance is empty