/// <summary> /// Reads a <see cref="GeoAPI.Geometries.Coordinate"/> from the current position. /// It's akin to <see cref="WktShapeParser.State"/> but for /// a NTS Coordinate. Only the first 2 numbers are parsed; any remaining are ignored. /// </summary> /// <param name="state"></param> /// <returns></returns> protected virtual Coordinate Coordinate(WktShapeParser.State state) { double x = m_ctx.NormX(state.NextDouble()); m_ctx.VerifyX(x); double y = m_ctx.NormY(state.NextDouble()); m_ctx.VerifyY(y); state.SkipNextDoubles(); return(new Coordinate(x, y)); }