SFCGAL 2.0.0
SFCGAL::io Namespace Reference

Namespaces

namespace  OBJ
namespace  VTK

Classes

class  BinarySerializer
class  BinaryUnserializer

Functions

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

Function Documentation

◆ readBinaryGeometry()

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.

◆ readBinaryPrepared()

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.

◆ readEwkb() [1/3]

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*.

◆ readEwkb() [2/3]

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

Read a EWKB geometry from a string.

◆ readEwkb() [3/3]

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.

◆ readEwkt() [1/3]

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*.

◆ readEwkt() [2/3]

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

Read a EWKT geometry from a string.

◆ readEwkt() [3/3]

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.

◆ readWkb() [1/3]

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*.

◆ readWkb() [2/3]

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

Read a WKB geometry from a string.

◆ readWkb() [3/3]

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

Read a WKB geometry from an input stream.

◆ readWkt() [1/3]

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

Read a WKT geometry from a char*.

◆ readWkt() [2/3]

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

Read a WKT geometry from a string.

◆ readWkt() [3/3]

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

Read a WKT geometry from an input stream.

◆ toOsgGeometry()

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

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

◆ writeBinaryGeometry()

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

Convert a Geometry to its binary representation.

Warning
resulting string may contain 0s

◆ writeBinaryPrepared()

SFCGAL_API std::string SFCGAL::io::writeBinaryPrepared ( const SFCGAL::PreparedGeometry & )

Convert a PreparedGeometry to its binary representation.

Warning
resulting string may contain 0s