SFCGAL  1.5.0
Public Member Functions | List of all members
SFCGAL::detail::io::WkbWriter Class Reference

Writer for WKB. More...

#include <WkbWriter.h>

Public Member Functions

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

Detailed Description

Writer for WKB.

Constructor & Destructor Documentation

◆ WkbWriter()

SFCGAL::detail::io::WkbWriter::WkbWriter ( std::ostream &  s)
inline

Member Function Documentation

◆ write() [1/2]

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

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,
bool  asHex = false 
)

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