Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

MgWktReaderWriter
Read
Read
Write
Write
virtual MgGeometry* MgWktReaderWriter::Read | ( | CREFSTRING | wkt,
|  | MgTransform * | transform |
| ) |  |  | `[virtual]`
Reads a geometry object from a string in WKT format applying the specified transform during the read. .NET Syntax
`virtual MgGeometry Read(string wkt, MgTransform transform);`
Java Syntax
`virtual MgGeometry Read(String wkt, MgTransform transform);`
PHP Syntax
`virtual MgGeometry Read(string wkt, MgTransform transform);`
  Parameters:
  | wkt | (String/string) A string that supplies the WKT representation.
  | transform | (MgTransform) An MgTransform that is used to transform each coordinate read from the WKT representation.
Returns: An instance of MgGeometry that corresponds to the specified WKT with the specified transform applied.

Comments or suggestions? Send us feedback.