SFCGAL 2.0.0
SFCGAL::detail::io::WkbWriter Class Reference

Writer for WKB. More...

#include <WkbWriter.h>

Public Member Functions

 WkbWriter (std::ostream &s, bool asHexString=false)
void write (const Geometry &g, boost::endian::order wkbOrder=boost::endian::order::native)
 write WKB for a geometry wkbOrder is the native endianness by default.
void write (const Geometry &g, const srid_t &srid, boost::endian::order wkbOrder=boost::endian::order::native)
 write EWKB for a geometry wkbOrder is the native endianness by default.

Detailed Description

Writer for WKB.

Constructor & Destructor Documentation

◆ WkbWriter()

SFCGAL::detail::io::WkbWriter::WkbWriter ( std::ostream & s,
bool asHexString = false )
inline

Member Function Documentation

◆ write() [1/2]

void SFCGAL::detail::io::WkbWriter::write ( const Geometry & g,
boost::endian::order wkbOrder = boost::endian::order::native )

write WKB for a geometry wkbOrder is the native endianness by default.

◆ write() [2/2]

void SFCGAL::detail::io::WkbWriter::write ( const Geometry & g,
const srid_t & srid,
boost::endian::order wkbOrder = boost::endian::order::native )

write EWKB for a geometry wkbOrder is the native endianness by default.