SFCGAL
Public Member Functions | Protected Member Functions | List of all members
SFCGAL::detail::io::WktWriter Class Reference

Writer for WKT. More...

#include <WktWriter.h>

Public Member Functions

 WktWriter (std::ostream &s)
 
void write (const Geometry &g, bool exact=false)
 

Protected Member Functions

void writeCoordinateType (const Geometry &g)
 write coordinate type (""|" Z"|" ZM") More...
 
void writeCoordinate (const Point &g)
 
void write (const Point &g)
 
void writeInner (const Point &g)
 
void write (const LineString &g)
 
void writeInner (const LineString &g)
 
void write (const Polygon &g)
 
void writeInner (const Polygon &g)
 
void write (const GeometryCollection &g)
 
void write (const MultiPoint &g)
 
void write (const MultiLineString &g)
 
void write (const MultiPolygon &g)
 
void write (const MultiSolid &g)
 
void write (const Triangle &g)
 
void writeInner (const Triangle &g)
 
void write (const TriangulatedSurface &g)
 
void write (const PolyhedralSurface &g)
 
void writeInner (const PolyhedralSurface &g)
 
void write (const Solid &g)
 
void writeInner (const Solid &g)
 
void writeRec (const Geometry &g)
 

Detailed Description

Writer for WKT.

Warning
Triangles are transformed into polygons

Constructor & Destructor Documentation

◆ WktWriter()

SFCGAL::detail::io::WktWriter::WktWriter ( std::ostream &  s)

Member Function Documentation

◆ write() [1/13]

void SFCGAL::detail::io::WktWriter::write ( const Geometry g,
bool  exact = false 
)
Todo:
replace with visitor dispatch

◆ write() [2/13]

void SFCGAL::detail::io::WktWriter::write ( const GeometryCollection g)
protected

◆ write() [3/13]

void SFCGAL::detail::io::WktWriter::write ( const LineString g)
protected

◆ write() [4/13]

void SFCGAL::detail::io::WktWriter::write ( const MultiLineString g)
protected

◆ write() [5/13]

void SFCGAL::detail::io::WktWriter::write ( const MultiPoint g)
protected

◆ write() [6/13]

void SFCGAL::detail::io::WktWriter::write ( const MultiPolygon g)
protected

◆ write() [7/13]

void SFCGAL::detail::io::WktWriter::write ( const MultiSolid g)
protected

◆ write() [8/13]

void SFCGAL::detail::io::WktWriter::write ( const Point g)
protected

◆ write() [9/13]

void SFCGAL::detail::io::WktWriter::write ( const Polygon g)
protected

◆ write() [10/13]

void SFCGAL::detail::io::WktWriter::write ( const PolyhedralSurface g)
protected

◆ write() [11/13]

void SFCGAL::detail::io::WktWriter::write ( const Solid g)
protected

◆ write() [12/13]

void SFCGAL::detail::io::WktWriter::write ( const Triangle g)
protected

◆ write() [13/13]

void SFCGAL::detail::io::WktWriter::write ( const TriangulatedSurface g)
protected

◆ writeCoordinate()

void SFCGAL::detail::io::WktWriter::writeCoordinate ( const Point g)
protected

◆ writeCoordinateType()

void SFCGAL::detail::io::WktWriter::writeCoordinateType ( const Geometry g)
protected

write coordinate type (""|" Z"|" ZM")

◆ writeInner() [1/6]

void SFCGAL::detail::io::WktWriter::writeInner ( const LineString g)
protected

◆ writeInner() [2/6]

void SFCGAL::detail::io::WktWriter::writeInner ( const Point g)
protected

◆ writeInner() [3/6]

void SFCGAL::detail::io::WktWriter::writeInner ( const Polygon g)
protected

◆ writeInner() [4/6]

void SFCGAL::detail::io::WktWriter::writeInner ( const PolyhedralSurface g)
protected

◆ writeInner() [5/6]

void SFCGAL::detail::io::WktWriter::writeInner ( const Solid g)
protected

◆ writeInner() [6/6]

void SFCGAL::detail::io::WktWriter::writeInner ( const Triangle g)
protected

◆ writeRec()

void SFCGAL::detail::io::WktWriter::writeRec ( const Geometry g)
protected