hgeos-0.1.7.4: Simple Haskell bindings to GEOS C API

Copyright(C) Richard Cook, 2016
LicenseMIT
Maintainerrcook@rcook.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.Geolocation.GEOS.Imports

Description

These are low-level FFI bindings for the Geometry Engine Open Source C API derived from geos_c.h. These enable low-level access to the native functions for parts of the C API for which high-level wrappers do not yet exist.

For the high-level API, see Data.Geolocation.GEOS.

For the monad transformer wrappers, see Data.Geolocation.GEOS.Trans.

View sample

Synopsis

Documentation

data GEOSContextHandle Source

Wraps GEOSContextHandle

data GEOSCoordSequencePtr Source

Wraps GEOSCoordSequence*

data GEOSWKTReaderPtr Source

Wraps GEOSWKTReader*

data GEOSWKTWriterPtr Source

Wraps GEOSWKTWriter*

class NullablePtr a where Source

Determines if given pointer is null

Methods

isNullPtr :: a -> Bool Source

Evaluates to True if pointer is null, False otherwise

rawIntPtr :: a -> IntPtr Source

c_GEOSFree_r_CString :: GEOSContextHandle -> CString -> IO () Source

Wraps GEOSFree_r specialized to const char*

c_GEOSGeom_destroy_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO () Source

Wraps GEOSGeom_destroy_r

c_GEOSWKTReader_destroy_r :: GEOSContextHandle -> GEOSWKTReaderPtr -> IO () Source

Wraps GEOSWKTReader_destroy_r

c_GEOSWKTWriter_destroy_r :: GEOSContextHandle -> GEOSWKTWriterPtr -> IO () Source

Wraps GEOSWKTWriter_destroy_r

c_GEOSversion :: IO CString Source

Wraps GEOSversion

c_finishGEOS_r :: GEOSContextHandle -> IO () Source

Wraps finishGEOS_r

c_getErrorMessage :: IO CString Source

Wraps getErrorMessage helper function

c_initializeGEOSWithHandlers :: IO GEOSContextHandle Source

Wraps initializeGEOSWithHandlers helper function