SFCGAL
Public Member Functions | List of all members
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 More...
 
srid_t readSRID ()
 read an SRID, if present More...
 
GeometryreadGeometry ()
 read a geometry from a string More...
 
GeometryType readGeometryType ()
 read geometry type More...
 
CoordinateType readCoordinateType ()
 read coordinate type [Z][M] More...
 
void readInnerPoint (Point &g)
 Read Point content from wkt. More...
 
void readInnerLineString (LineString &g)
 Read LineString content from wkt. More...
 
void readInnerPolygon (Polygon &g)
 Read Polygon content from wkt. More...
 
void readInnerTriangle (Triangle &g)
 Read Triangle content from wkt. More...
 
void readInnerMultiPoint (MultiPoint &g)
 Read MultiPoint content from wkt. More...
 
void readInnerMultiLineString (MultiLineString &g)
 Read MultiLineString content from wkt. More...
 
void readInnerMultiPolygon (MultiPolygon &g)
 Read MultiPolygon content from wkt. More...
 
void readInnerGeometryCollection (GeometryCollection &g)
 Read GeometryCollection content from wkt. More...
 
void readInnerTriangulatedSurface (TriangulatedSurface &g)
 Read TriangulatedSurface content from wkt. More...
 
void readInnerPolyhedralSurface (PolyhedralSurface &g)
 Read PolyhedralSurface content from wkt. More...
 
void readInnerSolid (Solid &g)
 Read Solid content from wkt. More...
 
void readInnerMultiSolid (MultiSolid &g)
 Read MultiSolid content from wkt. More...
 
bool readPointCoordinate (Point &p)
 Read coordinate from WKT. More...
 

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