SFCGAL  2.2.0
Namespaces | Classes | Functions
SFCGAL::io Namespace Reference

Main Input/output namespace. More...

Namespaces

 OBJ
 OBJ file format tools.
 
 STL
 
 VKT
 VKT file format tools.
 
 VTK
 

Classes

class  BinarySerializer
 
class  BinaryUnserializer
 

Functions

auto writeBinaryGeometry (const SFCGAL::Geometry &)
 Convert a Geometry to its binary representation. More...
 
auto writeBinaryPrepared (const SFCGAL::PreparedGeometry &)
 Convert a PreparedGeometry to its binary representation. More...
 
auto readBinaryGeometry (const std::string &)
 Read a Geometry from a binary representation. More...
 
auto readBinaryPrepared (const std::string &)
 Read a PreparedGeometry from a binary representation. More...
 
auto readEwkt (std::istream &s)
 Read a EWKT prepared geometry from an input stream. More...
 
auto readEwkt (const std::string &s)
 Read a EWKT geometry from a string. More...
 
auto readEwkt (const char *, size_t)
 Read a EWKT geometry from a char*. More...
 
SFCGAL_API osg::Geometry * toOsgGeometry (const Geometry &g)
 [helper] converts a SFCGAL::Geometry to an OSG geometry More...
 
auto readWkb (std::istream &stream, bool asHexString=false) -> std::unique_ptr< Geometry >
 Read a WKB geometry from an input stream. More...
 
auto readWkb (const std::string &s, bool asHexString=false) -> std::unique_ptr< Geometry >
 Read a WKB geometry from a string. More...
 
auto readWkb (const char *, size_t, bool asHexString=false) -> std::unique_ptr< Geometry >
 Read a WKB geometry from a char*. More...
 
auto readEwkb (std::istream &stream, bool asHexString) -> std::unique_ptr< PreparedGeometry >
 Read a WKB geometry from an input stream. More...
 
auto readEwkb (const std::string &s, bool asHexString=false) -> std::unique_ptr< PreparedGeometry >
 Read a EWKB geometry from a string. More...
 
auto readEwkb (const char *str, size_t len, bool asHexString) -> std::unique_ptr< PreparedGeometry >
 Read a WKB geometry from a char*. More...
 
auto readWkt (std::istream &s) -> std::unique_ptr< Geometry >
 Read a WKT geometry from an input stream. More...
 
auto readWkt (const std::string &s) -> std::unique_ptr< Geometry >
 Read a WKT geometry from a string. More...
 
auto readWkt (const char *, size_t) -> std::unique_ptr< Geometry >
 Read a WKT geometry from a char*. More...
 

Detailed Description

Main Input/output namespace.

Function Documentation

SFCGAL_API std::unique_ptr< SFCGAL::Geometry > SFCGAL::io::readBinaryGeometry ( const std::string &  str) -> std::unique_ptr< Geometry >

Read a Geometry from a binary representation.

SFCGAL_API std::unique_ptr< SFCGAL::PreparedGeometry > SFCGAL::io::readBinaryPrepared ( const std::string &  str) -> std::unique_ptr< PreparedGeometry >

Read a PreparedGeometry from a binary representation.

SFCGAL_API auto SFCGAL::io::readEwkb ( std::istream &  stream,
bool  asHexString 
) -> std::unique_ptr< PreparedGeometry >

Read a WKB geometry from an input stream.

Read a EWKB geometry from an input stream.

SFCGAL_API auto SFCGAL::io::readEwkb ( const std::string &  s,
bool  asHexString 
) -> std::unique_ptr< PreparedGeometry >

Read a EWKB geometry from a string.

SFCGAL_API auto SFCGAL::io::readEwkb ( const char *  str,
size_t  len,
bool  asHexString 
) -> std::unique_ptr< PreparedGeometry >

Read a WKB geometry from a char*.

Read a EWKB geometry from a char*.

SFCGAL_API std::unique_ptr< PreparedGeometry > SFCGAL::io::readEwkt ( std::istream &  s) -> std::unique_ptr< PreparedGeometry >

Read a EWKT prepared geometry from an input stream.

SFCGAL_API std::unique_ptr< PreparedGeometry > SFCGAL::io::readEwkt ( const std::string &  s) -> std::unique_ptr< PreparedGeometry >

Read a EWKT geometry from a string.

SFCGAL_API std::unique_ptr< PreparedGeometry > SFCGAL::io::readEwkt ( const char *  str,
size_t  len 
) -> std::unique_ptr< PreparedGeometry >

Read a EWKT geometry from a char*.

SFCGAL_API auto SFCGAL::io::readWkb ( std::istream &  stream,
bool  asHexString 
) -> std::unique_ptr< Geometry >

Read a WKB geometry from an input stream.

SFCGAL_API auto SFCGAL::io::readWkb ( const std::string &  s,
bool  asHexString 
) -> std::unique_ptr< Geometry >

Read a WKB geometry from a string.

SFCGAL_API auto SFCGAL::io::readWkb ( const char *  str,
size_t  len,
bool  asHexString 
) -> std::unique_ptr< Geometry >

Read a WKB geometry from a char*.

SFCGAL_API auto SFCGAL::io::readWkt ( std::istream &  s) -> std::unique_ptr< Geometry >

Read a WKT geometry from an input stream.

SFCGAL_API auto SFCGAL::io::readWkt ( const std::string &  s) -> std::unique_ptr< Geometry >

Read a WKT geometry from a string.

SFCGAL_API auto SFCGAL::io::readWkt ( const char *  str,
size_t  len 
) -> std::unique_ptr< Geometry >

Read a WKT geometry from a char*.

SFCGAL_API osg::Geometry* SFCGAL::io::toOsgGeometry ( const Geometry &  g)

[helper] converts a SFCGAL::Geometry to an OSG geometry

SFCGAL_API std::string SFCGAL::io::writeBinaryGeometry ( const SFCGAL::Geometry &  )

Convert a Geometry to its binary representation.

Warning
resulting string may contain 0s
SFCGAL_API std::string SFCGAL::io::writeBinaryPrepared ( const SFCGAL::PreparedGeometry )

Convert a PreparedGeometry to its binary representation.

Warning
resulting string may contain 0s