SFCGAL 2.0.0
SFCGAL::detail::io::WktReader Class Reference

read WKT geometry More...

#include <WktReader.h>

Public Member Functions

 WktReader (std::istream &s)
 read WKT from input stream
 
srid_t readSRID ()
 read an SRID, if present
 
GeometryreadGeometry ()
 read a geometry from a string
 
GeometryType readGeometryType ()
 read geometry type
 
CoordinateType readCoordinateType ()
 read coordinate type [Z][M]
 
void readInnerPoint (Point &g)
 Read Point content from wkt.
 
void readInnerLineString (LineString &g)
 Read LineString content from wkt.
 
void readInnerPolygon (Polygon &g)
 Read Polygon content from wkt.
 
void readInnerTriangle (Triangle &g)
 Read Triangle content from wkt.
 
void readInnerMultiPoint (MultiPoint &g)
 Read MultiPoint content from wkt.
 
void readInnerMultiLineString (MultiLineString &g)
 Read MultiLineString content from wkt.
 
void readInnerMultiPolygon (MultiPolygon &g)
 Read MultiPolygon content from wkt.
 
void readInnerGeometryCollection (GeometryCollection &g)
 Read GeometryCollection content from wkt.
 
void readInnerTriangulatedSurface (TriangulatedSurface &g)
 Read TriangulatedSurface content from wkt.
 
void readInnerPolyhedralSurface (PolyhedralSurface &g)
 Read PolyhedralSurface content from wkt.
 
void readInnerSolid (Solid &g)
 Read Solid content from wkt.
 
void readInnerMultiSolid (MultiSolid &g)
 Read MultiSolid content from wkt.
 
bool readPointCoordinate (Point &p)
 Read coordinate from WKT.
 

Detailed Description

read WKT geometry

Warning
M is ignored @ŧodo take M in account?

Constructor & Destructor Documentation

◆ WktReader()

SFCGAL::detail::io::WktReader::WktReader ( std::istream & s)

read WKT from input stream

Member Function Documentation

◆ readCoordinateType()

CoordinateType SFCGAL::detail::io::WktReader::readCoordinateType ( )

read coordinate type [Z][M]

◆ readGeometry()

auto SFCGAL::detail::io::WktReader::readGeometry ( )

read a geometry from a string

Warning
returns new instance

◆ readGeometryType()

auto SFCGAL::detail::io::WktReader::readGeometryType ( )

read geometry type

◆ readInnerGeometryCollection()

void SFCGAL::detail::io::WktReader::readInnerGeometryCollection ( GeometryCollection & g)

Read GeometryCollection content from wkt.

◆ readInnerLineString()

void SFCGAL::detail::io::WktReader::readInnerLineString ( LineString & g)

Read LineString content from wkt.

ex : (1.0 2.0,1.0,6.0)

◆ readInnerMultiLineString()

void SFCGAL::detail::io::WktReader::readInnerMultiLineString ( MultiLineString & g)

Read MultiLineString content from wkt.

◆ readInnerMultiPoint()

void SFCGAL::detail::io::WktReader::readInnerMultiPoint ( MultiPoint & g)

Read MultiPoint content from wkt.

ex : (0.0 1.0,5.0 6.0) or ((0.0 4.0),(5.0 6.0))

◆ readInnerMultiPolygon()

void SFCGAL::detail::io::WktReader::readInnerMultiPolygon ( MultiPolygon & g)

Read MultiPolygon content from wkt.

◆ readInnerMultiSolid()

void SFCGAL::detail::io::WktReader::readInnerMultiSolid ( MultiSolid & g)

Read MultiSolid content from wkt.

◆ readInnerPoint()

void SFCGAL::detail::io::WktReader::readInnerPoint ( Point & g)

Read Point content from wkt.

ex : (1.0 2.0 14.0)

◆ readInnerPolygon()

void SFCGAL::detail::io::WktReader::readInnerPolygon ( Polygon & g)

Read Polygon content from wkt.

ex : ((30 10, 10 20, 20 40, 40 40, 30 10))

◆ readInnerPolyhedralSurface()

void SFCGAL::detail::io::WktReader::readInnerPolyhedralSurface ( PolyhedralSurface & g)

Read PolyhedralSurface content from wkt.

◆ readInnerSolid()

void SFCGAL::detail::io::WktReader::readInnerSolid ( Solid & g)

Read Solid content from wkt.

◆ readInnerTriangle()

void SFCGAL::detail::io::WktReader::readInnerTriangle ( Triangle & g)

Read Triangle content from wkt.

◆ readInnerTriangulatedSurface()

void SFCGAL::detail::io::WktReader::readInnerTriangulatedSurface ( TriangulatedSurface & g)

Read TriangulatedSurface content from wkt.

◆ readPointCoordinate()

auto SFCGAL::detail::io::WktReader::readPointCoordinate ( Point & p)

Read coordinate from WKT.

Todo
ZM management

◆ readSRID()

auto SFCGAL::detail::io::WktReader::readSRID ( )

read an SRID, if present