|
SFCGAL
2.3.0
|
Writer for Well-Known Text (WKT) geometry format. More...
#include <WktWriter.h>
Public Member Functions | |
| WktWriter (std::ostream &outStream) | |
| Constructor. More... | |
| void | write (const Geometry &geometry, bool exact=false) |
| Write a geometry as WKT. More... | |
Protected Member Functions | |
| void | writeCoordinateType (const Geometry &geometry) |
| Write coordinate type ("" | " Z" | " ZM") More... | |
| void | writeCoordinate (const Point &point) |
| Write a single coordinate. More... | |
| void | write (const Point &point) |
| Write a Point geometry. More... | |
| void | writeInner (const Point &point) |
| Write the inner coordinates of a Point. More... | |
| void | write (const LineString &lineString) |
| Write a LineString geometry. More... | |
| void | writeInner (const LineString &lineString) |
| Write the inner coordinates of a LineString. More... | |
| void | write (const Polygon &polygon) |
| Write a Polygon geometry. More... | |
| void | writeInner (const Polygon &polygon) |
| Write the inner rings of a Polygon. More... | |
| void | write (const GeometryCollection &collection) |
| Write a GeometryCollection. More... | |
| void | write (const MultiPoint &multipoint) |
| Write a MultiPoint geometry. More... | |
| void | write (const MultiLineString &multilinestring) |
| Write a MultiLineString geometry. More... | |
| void | write (const MultiPolygon &multipolygon) |
| Write a MultiPolygon geometry. More... | |
| void | writeWeights (const std::vector< Kernel::FT > &weights) |
| Write vector of weights in WKT format: (w1, w2, w3, ...) More... | |
| void | writeKnots (const std::vector< Kernel::FT > &knots) |
| Write vector of knots in WKT format: (k1, k2, k3, ...) More... | |
| void | write (const NURBSCurve &nurbsCurve) |
| Write NURBSCurve to WKT format. More... | |
| void | writeInner (const NURBSCurve &nurbsCurve) |
| Write inner content of NURBSCurve to WKT format. More... | |
| void | write (const MultiSolid &multisolid) |
| Write a MultiSolid geometry. More... | |
| void | write (const Triangle &triangle) |
| Write a Triangle geometry (as Polygon) More... | |
| void | writeInner (const Triangle &triangle) |
| Write the inner coordinates of a Triangle. More... | |
| void | write (const TriangulatedSurface &tin) |
| Write a TriangulatedSurface geometry. More... | |
| void | write (const PolyhedralSurface &surface) |
| Write a PolyhedralSurface geometry. More... | |
| void | writeInner (const PolyhedralSurface &surface) |
| Write the inner content of a PolyhedralSurface. More... | |
| void | write (const Solid &solid) |
| Write a Solid geometry. More... | |
| void | writeInner (const Solid &solid) |
| Write the inner shells of a Solid. More... | |
| void | writeRec (const Geometry &geometry) |
| Recursive call to write a geometry. More... | |
Writer for Well-Known Text (WKT) geometry format.
Converts SFCGAL Geometry objects to their WKT string representation. Supports all standard geometry types including 3D coordinates and measured values.
| SFCGAL::detail::io::WktWriter::WktWriter | ( | std::ostream & | outStream | ) |
Constructor.
| outStream | output stream where WKT will be written |
| void SFCGAL::detail::io::WktWriter::write | ( | const Geometry & | geometry, |
| bool | exact = false |
||
| ) |
Write a geometry as WKT.
| geometry | geometry to serialize as WKT |
| exact | if true, write exact representation (without simplifications) |
|
protected |
|
protected |
Write a LineString geometry.
| lineString | LineString to serialize |
|
protected |
|
protected |
Write a GeometryCollection.
| collection | GeometryCollection to serialize |
|
protected |
Write a MultiPoint geometry.
| multipoint | MultiPoint to serialize |
|
protected |
Write a MultiLineString geometry.
| multilinestring | MultiLineString to serialize |
|
protected |
Write a MultiPolygon geometry.
| multipolygon | MultiPolygon to serialize |
|
protected |
Write NURBSCurve to WKT format.
Outputs the complete WKT representation including geometry type and coordinate information.
| nurbsCurve | The NURBSCurve geometry to write. |
|
protected |
Write a MultiSolid geometry.
| multisolid | MultiSolid to serialize |
|
protected |
|
protected |
Write a TriangulatedSurface geometry.
| tin | TriangulatedSurface to serialize |
|
protected |
Write a PolyhedralSurface geometry.
| surface | PolyhedralSurface to serialize |
|
protected |
|
protected |
Write a single coordinate.
| point | point whose coordinates are written |
|
protected |
Write coordinate type ("" | " Z" | " ZM")
| geometry | geometry whose coordinate type is written |
|
protected |
|
protected |
Write the inner coordinates of a LineString.
| lineString | LineString whose coordinates are written |
|
protected |
|
protected |
Write inner content of NURBSCurve to WKT format.
Outputs only the coordinate content without the geometry type prefix, used for nested geometry structures.
| nurbsCurve | The NURBSCurve geometry to write. |
|
protected |
|
protected |
Write the inner content of a PolyhedralSurface.
| surface | PolyhedralSurface whose content is written |
|
protected |
|
protected |
Write vector of knots in WKT format: (k1, k2, k3, ...)
| knots | Vector of knot values to write |
|
protected |
Recursive call to write a geometry.
| geometry | geometry to serialize recursively |
|
protected |
Write vector of weights in WKT format: (w1, w2, w3, ...)
| weights | Vector of weight values to write |
1.8.10