Copyright | (C) Richard Cook, 2016 |
---|---|
License | MIT |
Maintainer | rcook@rcook.org |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
- data GEOSContextHandle
- data GEOSCoordSequencePtr
- data GEOSGeometryPtr
- data GEOSWKTReaderPtr
- data GEOSWKTWriterPtr
- class NullablePtr a where
- c_GEOSArea_r :: GEOSContextHandle -> GEOSGeometryPtr -> Ptr CDouble -> IO CInt
- c_GEOSCoordSeq_create_r :: GEOSContextHandle -> CUInt -> CUInt -> IO GEOSCoordSequencePtr
- c_GEOSCoordSeq_destroy_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> IO ()
- c_GEOSCoordSeq_getOrdinate_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CUInt -> Ptr CDouble -> IO CInt
- c_GEOSCoordSeq_getSize_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> Ptr CUInt -> IO CInt
- c_GEOSCoordSeq_getX_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> Ptr CDouble -> IO CInt
- c_GEOSCoordSeq_getY_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> Ptr CDouble -> IO CInt
- c_GEOSCoordSeq_getZ_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> Ptr CDouble -> IO CInt
- c_GEOSCoordSeq_setOrdinate_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CUInt -> CDouble -> IO CInt
- c_GEOSCoordSeq_setX_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CDouble -> IO CInt
- c_GEOSCoordSeq_setY_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CDouble -> IO CInt
- c_GEOSCoordSeq_setZ_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CDouble -> IO CInt
- c_GEOSEnvelope_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO GEOSGeometryPtr
- c_GEOSFree_r_CString :: GEOSContextHandle -> CString -> IO ()
- c_GEOSGeomTypeId_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO CInt
- c_GEOSGeom_createCollection_r :: GEOSContextHandle -> CInt -> Ptr GEOSGeometryPtr -> CUInt -> IO GEOSGeometryPtr
- c_GEOSGeom_createEmptyPolygon_r :: GEOSContextHandle -> IO GEOSGeometryPtr
- c_GEOSGeom_createLinearRing_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> IO GEOSGeometryPtr
- c_GEOSGeom_createPolygon_r :: GEOSContextHandle -> GEOSGeometryPtr -> Ptr GEOSGeometryPtr -> CUInt -> IO GEOSGeometryPtr
- c_GEOSGeom_destroy_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO ()
- c_GEOSGeom_getCoordSeq_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO GEOSCoordSequencePtr
- c_GEOSGetExteriorRing_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO GEOSGeometryPtr
- c_GEOSGetGeometryN_r :: GEOSContextHandle -> GEOSGeometryPtr -> CInt -> IO GEOSGeometryPtr
- c_GEOSGetNumGeometries_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO CInt
- c_GEOSIntersection_r :: GEOSContextHandle -> GEOSGeometryPtr -> GEOSGeometryPtr -> IO GEOSGeometryPtr
- c_GEOSWKTReader_create_r :: GEOSContextHandle -> IO GEOSWKTReaderPtr
- c_GEOSWKTReader_destroy_r :: GEOSContextHandle -> GEOSWKTReaderPtr -> IO ()
- c_GEOSWKTReader_read_r :: GEOSContextHandle -> GEOSWKTReaderPtr -> CString -> IO GEOSGeometryPtr
- c_GEOSWKTWriter_create_r :: GEOSContextHandle -> IO GEOSWKTWriterPtr
- c_GEOSWKTWriter_destroy_r :: GEOSContextHandle -> GEOSWKTWriterPtr -> IO ()
- c_GEOSWKTWriter_write_r :: GEOSContextHandle -> GEOSWKTWriterPtr -> GEOSGeometryPtr -> IO CString
- c_GEOSisEmpty_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO CChar
- c_GEOSversion :: IO CString
- c_finishGEOS_r :: GEOSContextHandle -> IO ()
- c_getErrorMessage :: IO CString
- c_initializeGEOSWithHandlers :: IO GEOSContextHandle
Documentation
data GEOSContextHandle Source
Wraps GEOSContextHandle
data GEOSGeometryPtr Source
Wraps GEOSGeometry*
class NullablePtr a where Source
Determines if given pointer is null
Evaluates to True
if pointer is null, False
otherwise
c_GEOSArea_r :: GEOSContextHandle -> GEOSGeometryPtr -> Ptr CDouble -> IO CInt Source
Wraps GEOSArea_r
c_GEOSCoordSeq_create_r :: GEOSContextHandle -> CUInt -> CUInt -> IO GEOSCoordSequencePtr Source
Wraps GEOSCoordSeq_create_r
c_GEOSCoordSeq_destroy_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> IO () Source
Wraps GEOSCoordSeq_destroy_r
c_GEOSCoordSeq_getOrdinate_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CUInt -> Ptr CDouble -> IO CInt Source
Wraps GEOSCoordSeq_getOrdinate_r
c_GEOSCoordSeq_getSize_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> Ptr CUInt -> IO CInt Source
Wraps GEOSCoordSeq_getSize_r
c_GEOSCoordSeq_getX_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> Ptr CDouble -> IO CInt Source
Wraps GEOSCoordSeq_getX_r
c_GEOSCoordSeq_getY_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> Ptr CDouble -> IO CInt Source
Wraps GEOSCoordSeq_getY_r
c_GEOSCoordSeq_getZ_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> Ptr CDouble -> IO CInt Source
Wraps GEOSCoordSeq_getZ_r
c_GEOSCoordSeq_setOrdinate_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CUInt -> CDouble -> IO CInt Source
Wraps GEOSCoordSeq_setOrdinate_r
c_GEOSCoordSeq_setX_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CDouble -> IO CInt Source
Wraps GEOSCoordSeq_setX_r
c_GEOSCoordSeq_setY_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CDouble -> IO CInt Source
Wraps GEOSCoordSeq_setY_r
c_GEOSCoordSeq_setZ_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> CUInt -> CDouble -> IO CInt Source
Wraps GEOSCoordSeq_setZ_r
c_GEOSEnvelope_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO GEOSGeometryPtr Source
Wraps GEOSEnvelope_r
c_GEOSFree_r_CString :: GEOSContextHandle -> CString -> IO () Source
Wraps GEOSFree_r
specialized to const char*
c_GEOSGeomTypeId_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO CInt Source
Wraps GEOSGeomTypeId_r
c_GEOSGeom_createCollection_r :: GEOSContextHandle -> CInt -> Ptr GEOSGeometryPtr -> CUInt -> IO GEOSGeometryPtr Source
Wraps GEOSGeom_createCollection_r
c_GEOSGeom_createEmptyPolygon_r :: GEOSContextHandle -> IO GEOSGeometryPtr Source
Wraps GEOSGeom_createEmptyPolygon_r
c_GEOSGeom_createLinearRing_r :: GEOSContextHandle -> GEOSCoordSequencePtr -> IO GEOSGeometryPtr Source
Wraps GEOSGeom_createLinearRing_r
c_GEOSGeom_createPolygon_r :: GEOSContextHandle -> GEOSGeometryPtr -> Ptr GEOSGeometryPtr -> CUInt -> IO GEOSGeometryPtr Source
Wraps GEOSGeom_createPolygon_r
c_GEOSGeom_destroy_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO () Source
Wraps GEOSGeom_destroy_r
c_GEOSGeom_getCoordSeq_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO GEOSCoordSequencePtr Source
Wraps GEOSGeom_getCoordSeq_r
c_GEOSGetExteriorRing_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO GEOSGeometryPtr Source
Wraps GEOSGetExteriorRing_r
c_GEOSGetGeometryN_r :: GEOSContextHandle -> GEOSGeometryPtr -> CInt -> IO GEOSGeometryPtr Source
Wraps GEOSGetGeometryN_r
c_GEOSGetNumGeometries_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO CInt Source
Wraps GEOSGetNumGeometries_r
c_GEOSIntersection_r :: GEOSContextHandle -> GEOSGeometryPtr -> GEOSGeometryPtr -> IO GEOSGeometryPtr Source
Wraps GEOSIntersection_r
c_GEOSWKTReader_create_r :: GEOSContextHandle -> IO GEOSWKTReaderPtr Source
Wraps GEOSWKTReader_create_r
c_GEOSWKTReader_destroy_r :: GEOSContextHandle -> GEOSWKTReaderPtr -> IO () Source
Wraps GEOSWKTReader_destroy_r
c_GEOSWKTReader_read_r :: GEOSContextHandle -> GEOSWKTReaderPtr -> CString -> IO GEOSGeometryPtr Source
Wraps GEOSWKTReader_read_r
c_GEOSWKTWriter_create_r :: GEOSContextHandle -> IO GEOSWKTWriterPtr Source
Wraps GEOSWKTWriter_create_r
c_GEOSWKTWriter_destroy_r :: GEOSContextHandle -> GEOSWKTWriterPtr -> IO () Source
Wraps GEOSWKTWriter_destroy_r
c_GEOSWKTWriter_write_r :: GEOSContextHandle -> GEOSWKTWriterPtr -> GEOSGeometryPtr -> IO CString Source
Wraps GEOSWKTWriter_write_r
c_GEOSisEmpty_r :: GEOSContextHandle -> GEOSGeometryPtr -> IO CChar Source
Wraps GEOSisEmpty_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