wkt-geom-0.0.8: A parser of WKT, WKB and eWKB.

Safe HaskellNone
LanguageHaskell2010

Data.Wkb

Synopsis

Documentation

parseByteString :: ByteString -> Either String GeospatialGeometry Source #

Representation of WKB as Binary

parseHexByteString :: Hex -> Either String GeospatialGeometry Source #

Representation of WKB as a String in Base16/Hex form i.e. "0101000000000000000000f03f0000000000000040" is POINT 1.0 2.0

toByteString :: EndianType -> GeospatialGeometry -> ByteString Source #

Produce the binary representation of WKB given its EndianType (Little or Big - Intel is Little). Use EWKB when you know the SRID.