geos-0.1.0.0: Bindings for GEOS.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Geos.Types

Synopsis

Documentation

class Geo a where

Methods

contains :: a -> Geometry b -> Bool

coveredBy :: a -> Geometry b -> Bool

covers :: a -> Geometry b -> Bool

crosses :: a -> Geometry b -> Bool

Returns True if the DE-9IM intersection matrix for the two Geometries is T*T****** (for a point and a curve,a point and an area or a line and an area) 0******** (for two curves).

disjoint :: a -> Geometry b -> Bool

Returns True if the DE-9IM intersection matrix for the two geometries is FF*FF****.

intersects :: a -> Geometry b -> Bool

Returns True if disjoint is False.

overlaps :: a -> Geometry b -> Bool

Returns true if the DE-9IM intersection matrix for the two geometries is T*T***T** (for two points or two surfaces) 1*T***T** (for two curves).

touches :: a -> Geometry b -> Bool

Returns True if the DE-9IM intersection matrix for the two geometries is FT*******, F**T***** or F***T****.

within :: a -> Geometry b -> Bool

Returns True if the DE-9IM intersection matrix for the two geometries is T*F**F***.

type SRID = Maybe Int

data Some :: (* -> *) -> * where

Constructors

Some :: f a -> Some f 

Instances

withSomeGeometry :: Some Geometry -> (forall a. Geometry a -> b) -> b

newtype Point

Constructors

Point Coordinate 

newtype Polygon

In a polygon, the fist LinearRing is the shell, and any following are holes.

Constructors

Polygon (Vector LinearRing)