Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetCurrent
MoveNext
Reset
virtual MgCoordinate* MgCoordinateIterator::GetCurrent | ( |  | ) | `[virtual]`
Gets the current coordinate. After an iterator is created or after a Reset, MoveNext must be called to advance the iterator to the first coordinate before calling GetCurrent; otherwise, the current position is undefined and an exception is thrown. .NET Syntax
`virtual MgCoordinate GetCurrent();`
Java Syntax
`virtual MgCoordinate GetCurrent();`
PHP Syntax
`virtual MgCoordinate GetCurrent();`
  Returns: The coordinate at the current position. Exceptions:
  | MgIndexOutOfRangeException |

Comments or suggestions? Send us feedback.