|
SFCGAL
2.3.0
|
Reader for Well-Known Text (WKT) geometry format. More...
#include <WktReader.h>
Public Member Functions | |
| WktReader (std::istream &inputStream) | |
| Constructor: read WKT from input stream. More... | |
| auto | readSRID () -> srid_t |
| read an SRID, if present More... | |
| auto | readGeometry () -> std::unique_ptr< Geometry > |
| read a geometry from a string More... | |
| auto | readGeometryType () -> GeometryType |
| read geometry type More... | |
| auto | readCoordinateType () -> CoordinateType |
| read coordinate type [Z][M] More... | |
| void | readInnerPoint (Point &point) |
| Read Point content from WKT. More... | |
| void | readInnerLineString (LineString &lineString) |
| Read LineString content from WKT. More... | |
| void | readInnerPolygon (Polygon &polygon) |
| Read Polygon content from WKT. More... | |
| void | readInnerTriangle (Triangle &triangle) |
| Read Triangle content from WKT. More... | |
| void | readInnerMultiPoint (MultiPoint &multiPoint) |
| Read MultiPoint content from WKT. More... | |
| void | readInnerMultiLineString (MultiLineString &multiLineString) |
| Read MultiLineString content from WKT. More... | |
| void | readInnerMultiPolygon (MultiPolygon &multiPolygon) |
| Read MultiPolygon content from WKT. More... | |
| void | readInnerGeometryCollection (GeometryCollection &collection) |
| Read GeometryCollection content from WKT. More... | |
| void | readInnerTriangulatedSurface (TriangulatedSurface &tin) |
| Read TriangulatedSurface content from WKT. More... | |
| void | readInnerPolyhedralSurface (PolyhedralSurface &surface) |
| Read PolyhedralSurface content from WKT. More... | |
| void | readInnerSolid (Solid &solid) |
| Read Solid content from WKT. More... | |
| void | readInnerMultiSolid (MultiSolid &multiSolid) |
| Read MultiSolid content from WKT. More... | |
| void | readInnerNURBSCurve (NURBSCurve &g) |
| Read NURBSCurve content from WKT (NEW ISO FORMAT). More... | |
| auto | readWeightsVector () -> std::vector< Kernel::FT > |
| Read vector of weights from WKT format: (w1, w2, w3, ...) More... | |
| auto | readKnotsVector () -> std::vector< Kernel::FT > |
| Read vector of knots from WKT format: (k1, k2, k3, ...) More... | |
| auto | readDegree () -> unsigned int |
| Read degree value (unsigned integer) More... | |
| auto | readPointCoordinate (Point &point) -> bool |
| Read coordinate from WKT. More... | |
Reader for Well-Known Text (WKT) geometry format.
Parses WKT strings to create SFCGAL Geometry objects. Supports all standard geometry types including Points, LineStrings, Polygons, and collections, as well as 3D and measured coordinates.
| SFCGAL::detail::io::WktReader::WktReader | ( | std::istream & | inputStream | ) |
Constructor: read WKT from input stream.
| inputStream | input stream from which WKT will be read |
| auto SFCGAL::detail::io::WktReader::readCoordinateType | ( | ) | -> CoordinateType |
read coordinate type [Z][M]
| auto SFCGAL::detail::io::WktReader::readDegree | ( | ) | -> unsigned int |
Read degree value (unsigned integer)
| auto SFCGAL::detail::io::WktReader::readGeometry | ( | ) | -> std::unique_ptr<Geometry> |
read a geometry from a string
| auto SFCGAL::detail::io::WktReader::readGeometryType | ( | ) | -> GeometryType |
read geometry type
| void SFCGAL::detail::io::WktReader::readInnerGeometryCollection | ( | GeometryCollection & | collection | ) |
Read GeometryCollection content from WKT.
| collection | GeometryCollection object to fill |
| void SFCGAL::detail::io::WktReader::readInnerLineString | ( | LineString & | lineString | ) |
Read LineString content from WKT.
ex : (1.0 2.0,1.0,6.0)
| lineString | LineString object to fill with coordinates |
| void SFCGAL::detail::io::WktReader::readInnerMultiLineString | ( | MultiLineString & | multiLineString | ) |
Read MultiLineString content from WKT.
| multiLineString | MultiLineString object to fill with coordinates |
| void SFCGAL::detail::io::WktReader::readInnerMultiPoint | ( | MultiPoint & | multiPoint | ) |
Read MultiPoint content from WKT.
ex : (0.0 1.0,5.0 6.0) or ((0.0 4.0),(5.0 6.0))
| multiPoint | MultiPoint object to fill with coordinates |
| void SFCGAL::detail::io::WktReader::readInnerMultiPolygon | ( | MultiPolygon & | multiPolygon | ) |
Read MultiPolygon content from WKT.
| multiPolygon | MultiPolygon object to fill with coordinates |
| void SFCGAL::detail::io::WktReader::readInnerMultiSolid | ( | MultiSolid & | multiSolid | ) |
Read MultiSolid content from WKT.
| multiSolid | MultiSolid object to fill |
| void SFCGAL::detail::io::WktReader::readInnerNURBSCurve | ( | NURBSCurve & | g | ) |
Read NURBSCurve content from WKT (NEW ISO FORMAT).
Supports syntax:
| g | The NURBSCurve geometry to populate with parsed data. |
| void SFCGAL::detail::io::WktReader::readInnerPoint | ( | Point & | point | ) |
| void SFCGAL::detail::io::WktReader::readInnerPolygon | ( | Polygon & | polygon | ) |
| void SFCGAL::detail::io::WktReader::readInnerPolyhedralSurface | ( | PolyhedralSurface & | surface | ) |
Read PolyhedralSurface content from WKT.
| surface | PolyhedralSurface object to fill |
| void SFCGAL::detail::io::WktReader::readInnerSolid | ( | Solid & | solid | ) |
| void SFCGAL::detail::io::WktReader::readInnerTriangle | ( | Triangle & | triangle | ) |
| void SFCGAL::detail::io::WktReader::readInnerTriangulatedSurface | ( | TriangulatedSurface & | tin | ) |
Read TriangulatedSurface content from WKT.
| tin | TriangulatedSurface object to fill |
| auto SFCGAL::detail::io::WktReader::readKnotsVector | ( | ) | -> std::vector<Kernel::FT> |
Read vector of knots from WKT format: (k1, k2, k3, ...)
| auto SFCGAL::detail::io::WktReader::readPointCoordinate | ( | Point & | point | ) | -> bool |
| auto SFCGAL::detail::io::WktReader::readSRID | ( | ) | -> srid_t |
read an SRID, if present
| auto SFCGAL::detail::io::WktReader::readWeightsVector | ( | ) | -> std::vector<Kernel::FT> |
Read vector of weights from WKT format: (w1, w2, w3, ...)
1.8.10