{-# LANGUAGE EmptyDataDecls, FlexibleContexts, FlexibleInstances,
  ForeignFunctionInterface, IncoherentInstances,
  MultiParamTypeClasses, OverlappingInstances, TemplateHaskell,
  TypeFamilies, TypeSynonymInstances #-}
module GDAL.OGRCurvePolygon.Implementation where
import Data.Monoid
import Data.Word
import Data.Int
import Foreign.C
import Foreign.Ptr
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import System.IO.Unsafe
import FFICXX.Runtime.Cast
import FFICXX.Runtime.CodeGen.Cxx
import FFICXX.Runtime.TH
import GDAL.OGRCurvePolygon.RawType
import GDAL.OGRCurvePolygon.FFI
import GDAL.OGRCurvePolygon.Interface
import GDAL.OGRCurvePolygon.Cast
import GDAL.OGRCurvePolygon.RawType
import GDAL.OGRCurvePolygon.Cast
import GDAL.OGRCurvePolygon.Interface
import GDAL.OGRPolygon.RawType
import GDAL.OGRPolygon.Cast
import GDAL.OGRPolygon.Interface
import GDAL.OGRMultiPolygon.RawType
import GDAL.OGRMultiPolygon.Cast
import GDAL.OGRMultiPolygon.Interface
import GDAL.OGREnvelope.RawType
import GDAL.OGREnvelope.Cast
import GDAL.OGREnvelope.Interface
import GDAL.OGRPoint.RawType
import GDAL.OGRPoint.Cast
import GDAL.OGRPoint.Interface
import GDAL.OGRSurface.RawType
import GDAL.OGRSurface.Cast
import GDAL.OGRSurface.Interface
import GDAL.OGRGeometry.RawType
import GDAL.OGRGeometry.Cast
import GDAL.OGRGeometry.Interface
import STD.Deletable.RawType
import STD.Deletable.Cast
import STD.Deletable.Interface

instance () => IOGRCurvePolygon (OGRCurvePolygon) where

instance () => IOGRSurface (OGRCurvePolygon) where

instance () => IOGRGeometry (OGRCurvePolygon) where
        getGeometryType :: OGRCurvePolygon -> IO CUInt
getGeometryType = (Ptr RawOGRCurvePolygon -> IO CUInt) -> OGRCurvePolygon -> IO CUInt
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRCurvePolygon -> IO CUInt
c_ogrcurvepolygon_getgeometrytype
        getEnvelope :: forall c0.
(IOGREnvelope c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO ()
getEnvelope = (Ptr RawOGRCurvePolygon -> Ptr RawOGREnvelope -> IO ())
-> OGRCurvePolygon -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGREnvelope -> IO ()
c_ogrcurvepolygon_getenvelope
        intersects :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
intersects = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_intersects
        equals :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
equals = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_equals
        disjoint :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
disjoint = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_disjoint
        touches :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
touches = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_touches
        crosses :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
crosses = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_crosses
        within :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
within = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_within
        contains :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
contains = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_contains
        overlaps :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CBool
overlaps = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool)
-> OGRCurvePolygon -> c0 -> IO CBool
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CBool
c_ogrcurvepolygon_overlaps
        boundary :: OGRCurvePolygon -> IO OGRGeometry
boundary = (Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> IO OGRGeometry
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_boundary
        distance :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CDouble
distance = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CDouble)
-> OGRCurvePolygon -> c0 -> IO CDouble
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CDouble
c_ogrcurvepolygon_distance
        convexHull :: OGRCurvePolygon -> IO OGRGeometry
convexHull = (Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> IO OGRGeometry
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_convexhull
        buffer :: OGRCurvePolygon -> CDouble -> CInt -> IO OGRGeometry
buffer = (Ptr RawOGRCurvePolygon
 -> CDouble -> CInt -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> CDouble -> CInt -> IO OGRGeometry
forall a ca x1 cx1 x2 cx2 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) =>
(ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y
xform2 Ptr RawOGRCurvePolygon
-> CDouble -> CInt -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_buffer
        intersection :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO OGRGeometry
intersection = (Ptr RawOGRCurvePolygon
 -> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> c0 -> IO OGRGeometry
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon
-> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_intersection
        union :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO OGRGeometry
union = (Ptr RawOGRCurvePolygon
 -> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> c0 -> IO OGRGeometry
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon
-> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_union
        unionCascaded :: OGRCurvePolygon -> IO OGRGeometry
unionCascaded = (Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> IO OGRGeometry
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_unioncascaded
        difference :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO OGRGeometry
difference = (Ptr RawOGRCurvePolygon
 -> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> c0 -> IO OGRGeometry
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon
-> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_difference
        symDifference :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO OGRGeometry
symDifference = (Ptr RawOGRCurvePolygon
 -> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> c0 -> IO OGRGeometry
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon
-> Ptr RawOGRGeometry -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_symdifference
        centroid :: forall c0.
(IOGRPoint c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CInt
centroid = (Ptr RawOGRCurvePolygon -> Ptr RawOGRPoint -> IO CInt)
-> OGRCurvePolygon -> c0 -> IO CInt
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRPoint -> IO CInt
c_ogrcurvepolygon_centroid
        simplify :: OGRCurvePolygon -> CDouble -> IO OGRGeometry
simplify = (Ptr RawOGRCurvePolygon -> CDouble -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> CDouble -> IO OGRGeometry
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> CDouble -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_simplify
        delaunayTriangulation :: OGRCurvePolygon -> CDouble -> CInt -> IO OGRGeometry
delaunayTriangulation
          = (Ptr RawOGRCurvePolygon
 -> CDouble -> CInt -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> CDouble -> CInt -> IO OGRGeometry
forall a ca x1 cx1 x2 cx2 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) =>
(ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y
xform2 Ptr RawOGRCurvePolygon
-> CDouble -> CInt -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_delaunaytriangulation
        polygonize :: OGRCurvePolygon -> IO OGRGeometry
polygonize = (Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry))
-> OGRCurvePolygon -> IO OGRGeometry
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRCurvePolygon -> IO (Ptr RawOGRGeometry)
c_ogrcurvepolygon_polygonize
        distance3D :: forall c0.
(IOGRGeometry c0, FPtr c0) =>
OGRCurvePolygon -> c0 -> IO CDouble
distance3D = (Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CDouble)
-> OGRCurvePolygon -> c0 -> IO CDouble
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRCurvePolygon -> Ptr RawOGRGeometry -> IO CDouble
c_ogrcurvepolygon_distance3d

instance () => IDeletable (OGRCurvePolygon) where
        delete :: OGRCurvePolygon -> IO ()
delete = (Ptr RawOGRCurvePolygon -> IO ()) -> OGRCurvePolygon -> IO ()
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRCurvePolygon -> IO ()
c_ogrcurvepolygon_delete